Skip to content

Comment on Stop avoiding regular expressions damn itparent

Comments

If I am reading the chart correctly, doubled performance would still not be enough.

Absolutely. But the original version linked was twice as slow as need be.

For trivial replacements string manipulation I find is faster and safer (fewer bugs). But there is some threshold of complexity in which regular expressions are both more performant and safer.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.