Hacker News new | ask | show | jobs
by NotAnOtter 514 days ago
I do search with regex pretty often and as a result have memorized these, but if I was mentoring someone I would never encourage them to memorize it.

Start with . and .*, then add additional stuff as you get comfortable

1 comments

Quite. I use regex a lot, but mostly in bursts. Sometimes I still have to check how a negative lookbehind goes! The important thing, as with everything, is to try to keep in mind what is and isn't possible, even if you don't keep the specific syntactic details in your mental L1 cache.