![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Help with Perl REby johngg (Canon) |
on Jan 22, 2009 at 23:46 UTC ( [id://738349]=note: print w/replies, xml ) | Need Help?? |
A couple of useful features are the ability to pre-compile a regular expression, storing it in a variable for later use and the ability to use extended syntax to break the pattern up with whitespace and comments to make it more readable. Here is your pattern given such treatment.
Have a look at the documentation links provided by kennethk for explanations of things like character classes and greedy versus non-greedy quantifiers. I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|