Hacker News new | ask | show | jobs
by d4n3 4139 days 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.

1 comments

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'.