|Problems? Is your data what you think it is?|
perlre inverse check for several patternsby averlon (Sexton)
|on Jun 02, 2023 at 13:58 UTC||Need Help??|
averlon has asked for the wisdom of the Perl Monks concerning the following question:
I have the following string as an examplexxx<pre>xxx<www>xxx<strong>xxx
In my case "pre" is allowed and "strong" as well. But "www" is not allowed.
I have tried just for test to finde one exception with:<(?!strong)>
But did not bring a hit!
At least I need to define in the regex all allowed patterns (there are not many in my case) and it should bring a hit if some not allowed pattern is found
Can someone help me on this?