Greetings, wise monks;
I have a simple (stupid, if you prefer) question to which an answer cannot be found in the perlre and perlrequick man pages... I'd like to match a certain sentence, exept for one word. I shall give an example to show what I mean:
echo abc nevermind | perl -ne 'print if /abc nevermind/'
What I want, is to match every word _instead_ of 'abc'. /[^(abc)] nevermind/ doesn't group these letters as a word (as I expected), and rather seems to be having no effect at all, checking only if the last letter of the string to search matches any of 'abc'. How do I make it clear to perl that I want to match "not 'abc'" (the word)?
Thanks for any comments.
wouter
edited: Tue Jul 16 00:28:41 2002 by jeffa - added code tags
In reply to stupid question about regexp - not matching a word by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |