if( $test_string =~ /hello(\s+)world/ig ) { print "FOUND IT!"; } else { print "DIDNT FIND IT!"; }
The "i" will ignore case, and the "g" will allow it to match more than once, or globally.
In reply to Re: disregard spaces while matching ?
by gorillaman
in thread disregard spaces while matching ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |