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?