in reply to Match entire string, not just first character
You don't need the quotation marks or the square brackets:
if ( /^\w[\s]+\w/ and not /^A pdb file/ )
But my guess is you're also trying to match full words separated by a space with the first pattern, so:
if ( /^\w+[\s]+\w+/ and not /^A pdb file/ )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match entire string, not just first character
by SuzuBell (Acolyte) on Jul 18, 2013 at 19:36 UTC |