Re: regular expression

2005-12-29 Thread Krishna . Thotakura
Although, i read about negated versions of lookahead and lookbehind operators, i didnt really understand how to use them. Now, i get it. Thanks John. "John W. Krahn" <[EMAIL PROTECTED]> 12/29/2005 12:47 PM To: Perl Beginners cc: Subject:Re: regular e

regular expression

2005-12-29 Thread Krishna . Thotakura
I am looking for help on a PERL regular expression that can do the following: 1. Make sure that the string is 20 chars or else match should fail. 2. The string can have word characters or spaces or comma(,), hyphen(-), ampersand(&) characters. 3. If the string contains only spaces, then match s