Perl Monk, Perl Meditation | |
PerlMonks |
Re: Reg Expression translationby fletcher_the_dog (Friar) |
on Nov 14, 2003 at 19:54 UTC ( [id://307184]=note: print w/replies, xml ) | Need Help?? |
/^\s*$/
is a common way of seeing if a string is empty or has just white space. Basically it matches if from the beginning ("^") to the end ("$") where there is nothing or only white space ("\s*") between.
/^\w{1,}@/ is just another way of writing /^\w+@/ which matches one or more "word" characters ("\w+") followed by "@" at the beginning of the line ("^")
In Section
Seekers of Perl Wisdom
|
|