Thanks for all the help, I'll be sure and do that from now on.

-----Original Message-----
From: Chris Devers [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 16, 2004 12:08 PM
To: Fontenot, Paul
Cc: Bob Showalter; [EMAIL PROTECTED]
Subject: RE: pattern extraction

On Mon, 16 Aug 2004, Fontenot, Paul wrote:

> Thanks for the help. That did it, now if I could ask one more question
> on this. How can I make the MS portion match either upper or lower
case?

Add the 'i' flag to your regex:

     my $mso = ( $row[2] =~ (m/MS\d\d\-\d{3}/i) );

For more, look at `perldoc perlre`, or any introductory Perl book that 
goes over how to use regular expressions. These are FAQs.



-- 
Chris Devers      [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/

np: 'Four6 (John Cage)'
      by Sonic Youth
      from 'Goodbye 20th Century'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to