Great responses by the other Monks, so I'll just add a couple of things. A couple of debugging tools that can help you understand regexes better are the built-in regex debugger, use re 'debug';, and YAPE::Regex::Explain, both will allow you to display what your regexes are doing, or paste in regexes you find elsewhere and explain to you how they work.
In reply to Re: Regex, the jungle survival skill
by stevieb
in thread Regex, the jungle survival skill
by mmkstarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |