Who needs a regexp?
if (index($str, '_') < 0) { print "no underscore\n"; } else { print "with underscore\n"; }
• another intruder with the mooring in the heart of the Perl
In reply to Re: Regex for Differentiating Underscore and Whitespace
by grinder
in thread Regex for Differentiating Underscore and Whitespace
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |