Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
How to not match some words but match all the othersby set_uk (Pilgrim) |
on Oct 19, 2005 at 11:23 UTC ( [id://501252]=perlquestion: print w/replies, xml ) | Need Help?? |
set_uk has asked for the wisdom of the Perl Monks concerning the following question:
Im currently using this to match all words in a string and change its layout
How do i easily change it to specifically NOT match a list of words but match all the others without putting it into a loop. Ive just read in the Mastering Regex book that i cant negate alternation (page 17 par 1). So i cant say
Sure this must be patently obvious but I dont have my perl head on today Thanks
Back to
Seekers of Perl Wisdom
|
|