you'll want to replace them with code written in the native language
Probably not true for Javascript (and other scripted languages) - matching regex uses native and highly optimized regex lib, which will usually be orders of magnitude faster than implementing this in the language.
Comments
Probably not true for Javascript (and other scripted languages) - matching regex uses native and highly optimized regex lib, which will usually be orders of magnitude faster than implementing this in the language.
That isn't relevant in this context as the library linked couldn't be integrated into JavaScript.
Sorry, which library do you mean? The OP is a javascript library..
I just wanted to point out that regex is much faster in javascript than doing things 'by hand'.