The stupid question is the question not asked | |
PerlMonks |
Re: Re: Re: regex needed with match operatorby broquaint (Abbot) |
on Apr 28, 2003 at 13:47 UTC ( [id://253689]=note: print w/replies, xml ) | Need Help?? |
Would you mind explaining exactly what the \z and x are doing in the regex?Sure, to quote the docs \z Match only at end of stringThis is very similar to $ except $ matches the end of a line or before a newline. x Extend your pattern's legibility by permitting whitespace and comments.As it says, it allows for more readable regex, which is generally desirable considering the acute succinctness of regular expressions. HTH
_________
In Section
Seekers of Perl Wisdom
|
|