Skip to content

Comment on Stop avoiding regular expressions damn itparent

Comments

What you want is to achieve a level where you can start thinking in regexp.

Eg: /^([a-z]*)$/ this translates into my brain to: a string that starts with a capture group of 0-N characters between a-z and also ends with it.

Then it's really easy.

AboutSource Built by g1lg1l

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