crenz has asked for the wisdom of the Perl Monks concerning the following question:
A colleague of mine wants to learn about regexes. I can teach him the basics no problem, but I think such an introduction should include more than just the syntax. Issues I deem important include
- When not to use regexes (e.g. use split for /etc/passwd-like files)
- What to avoid (e.g. Death to Dot Star!)
- How to make regexes more readable (e.g. How can I hope to use regular expressions without creating illegible and unmaintainable code?)
So before I go and reinvent the wheel poorly, is there a good introduction to regexes available that covers usage aspects as well?