in reply to regular expressions in XS modules

Are you sure about that? Are you sure calling a sub YourSub from xs isn't all you need?