The above regex sees an 'a', followed by zero spaces, followed by a 'z'. Since this matches the value of $test, it prints "Good\n".$test = "az"; print "Good\n" if $test =~ /a\s*z/;
Cheers!
In reply to RE: RE: Re: Regexp oddity
by Ovid
in thread Regexp oddity
by daemon23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |