> -----Original Message-----
> From: Jeff 'japhy/Marillion' Pinyan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 18, 2001 9:57 AM
> To: David Simcik
> Cc: Perl Beginners
> Subject: Re: RegExp Problem...
> 
> 
> On Sep 18, David Simcik said:
> ...
> >     if($id =~ m/^.+_.+$/i)
> 
> You're doing too much work here.  Just use the regex
> 
>   if ($id =~ /_/)

And if the underscore needs to be surrounded by other chars,
the regex

   /._./

should work as well.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to