5 ms·
> 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 na
by d4n3 12y ago
> 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.
- UnoriginalGuy 12y agoThat isn't relevant in this context as the library linked couldn't be integrated into JavaScript.
- d4n3 12y agoSorry, 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'.