I want to match everything in a string that does not match a given pattern; for example [a-z].
Given the string abc4jkf8 4à3in, I need to match 48 4à3.
I've tried with ([a-z])+(?![a-z]) but this matches exactly the opposite of what I need. With the string above, this regexp matches abcjkfin.
Any ideas?
You use a negative set:
([^a-z]+)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With