I created a template for matching a string of 3 numbers (for example: 333) between tags a:
@((<a>(.?[^(<\/a>)].?))*)([0-9]{3})(((.*?)?</a>))@i
How can I invert the pattern above to get numbers not between tags a.
I'm trying to use ?!but not working
Edit:
Example input:
lor <a>111</a> em 222 ip <a><link />333</a> sum 444 do <a>x555</a> lo <a>z 666</a> res
kicaj source
share