Hacker News new | ask | show | jobs
by tom_ 514 days ago
It does come in handy if you search for stuff with regular expressions a lot!
1 comments

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

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.