![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
perlre inverse check for several patternsby averlon (Sexton) |
on Jun 02, 2023 at 13:58 UTC ( #11152608=perlquestion: print w/replies, xml ) | Need Help?? |
averlon has asked for the wisdom of the Perl Monks concerning the following question: I have the following string as an example xxx<pre>xxx<www>xxx<strong>xxxIn 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?
Regards
Kallewirsch
Back to
Seekers of Perl Wisdom
|
|