|Think about Loose Coupling|
"everything but" regexby melguin (Pilgrim)
|on Aug 16, 2001 at 23:23 UTC ( #105478=perlquestion: print w/replies, xml )||Need Help??|
melguin has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write an expression that matches everything but a specific string. Yes, I know that I can do it other ways outside of the regex, but I'd like to know how to do it inside, for learning if for no other reason (do we need another reason?).
I know that if I don't want any upercase letters I can do:
So I would assume I could also do a string that way if I blocked it off like this:
Anyone see any problems with this, or perhaps a better expression?
Back to Seekers of Perl Wisdom