SuzuBell has asked for the wisdom of the Perl Monks concerning the following question:
It is the second half of the syntax below that is incorrect. I am trying to only consider lines that do not start with the entire phrase "A pdb file". Currently, the syntax I wrote will also exclude any file that starts with "A". How can I avoid this?
if ( /^\w[\s]+\w/ and not /^["A pdb file"]/ )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Match entire string, not just first character
by Loops (Curate) on Jul 18, 2013 at 19:16 UTC | |
by SuzuBell (Acolyte) on Jul 18, 2013 at 19:36 UTC | |
|
Re: Match entire string, not just first character
by rjt (Curate) on Jul 18, 2013 at 19:18 UTC | |
|
Re: Match entire string, not just first character
by wee (Scribe) on Jul 18, 2013 at 21:30 UTC | |
|
Re: Match entire string, not just first character
by Preceptor (Deacon) on Jul 18, 2013 at 19:18 UTC | |
|
Re: Match entire string, not just first character
by Laurent_R (Canon) on Jul 18, 2013 at 21:16 UTC |