RE: Confusion with Regular Expressions

2001-08-30 Thread Chris Rogers
Thanks... Chris -Original Message- From: Carl Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 5:12 PM To: Chris Rogers; '[EMAIL PROTECTED]' Subject: RE: Confusion with Regular Expressions >There must be a way of >defining a character class using

RE: Confusion with Regular Expressions

2001-08-30 Thread Carl Rogers
>There must be a way of >defining a character class using the ascii values instead of the actual >character. I just don't know how to do it. If you refer to the ASCII value in it's hexadecimal equivalent (i.e.: 'A-Z ' is equivalent to [\x41-\x5A]) that should do the trick. HTH Carl -- To un

RE: Confusion with Regular Expressions

2001-08-30 Thread Chris Rogers
ascii values instead of the actual character. I just don't know how to do it. Thanks, Chris -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 4:49 PM To: '[EMAIL PROTECTED]' Subject: RE: Confusion with Regular Expressio

RE: Confusion with Regular Expressions

2001-08-30 Thread Bob Showalter
> -Original Message- > From: Chris Rogers [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 30, 2001 4:38 PM > To: Beginners@Perl. Org (E-mail) > Subject: RE: Confusion with Regular Expressions > > > OK. I have tried so many but haven't kept very good t

RE: Confusion with Regular Expressions

2001-08-30 Thread Chris Rogers
Thanks, but that didn't catch the string. I'll keep on trying -Original Message- From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 4:41 PM To: 'Chris Rogers '; 'Beginners@Perl. Org (E-mail) ' Subject: RE: Confusion wi

RE: Confusion with Regular Expressions

2001-08-30 Thread Chris Rogers
rett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 4:29 PM To: Chris Rogers Cc: Beginners@Perl. Org (E-mail) Subject: Re: Confusion with Regular Expressions > should be enclosed in quotes. Chapter 5 in the Camel book has again > completely confused me and I have tried

RE: Confusion with Regular Expressions

2001-08-30 Thread Gibbs Tanton - tgibbs
$line = get_line(); # or whatever $line =~ /"\s[^" ()]+[)]/; The " at the beginning will match to a quote followed by a space (\s). Then we match any character not in the character class [" ()] (by prepending it with ^. Finally, we match the literal ) [)]. This is what you described...I don't

RE: Confusion with Regular Expressions

2001-08-30 Thread Chris Rogers
rett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 4:29 PM To: Chris Rogers Cc: Beginners@Perl. Org (E-mail) Subject: Re: Confusion with Regular Expressions > should be enclosed in quotes. Chapter 5 in the Camel book has again > completely confused me and I have tried

Re: Confusion with Regular Expressions

2001-08-30 Thread Brett W. McCoy
> should be enclosed in quotes. Chapter 5 in the Camel book has again > completely confused me and I have tried many different regex's to accomplish > this over the last two days but have had very little luck. Any help would > be greatly appreciated. How about posting what you have tried so far