The best way to get better at regexes is to use them - practice, practice, practice! So what's the best way to give yourself the opportunity to practice?
Here are some ideas:
Use a text editor that supports making changes using regexes, for instance vim or ed. By forcing yourself to use regexes for all text changes you get the basics down pretty quickly.
Use tools like sed and grep on the command line at every opportunity. Both are driven by regexes.
The cost of this approach is that you will suffer an initial hit on productivity. But it will pay off on the end.
sed and grep are fantastic tools! 100% recommended!
Very nicely written Andrew. Goes straight to my reading list for future reference
Happy to hear that, Prashant! Thanks for reading!
It is a great one stop shop for regex....thank you for making the effort.
Thank you for reading!
Regex-schmegex, is that a screenshot from Dusk?
No it's not, I remember it prettier than it actually is.
Yeah the photo is of the chapel at Thanks-Giving Square in downtown Dallas, TX.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.