Regex - Revert a specific line / sequence of numbers [java]
I'm having trouble finding a RegEx that negates a specific string. In this case, I am dealing with numbers .
If I want to exclude the number "12" from my group of numbers:
[1, 12, 121, 212, 312]
How can I do this using RegEx? If I use something like ^ ((! 12).) * $ It will exclude all numbers except "1" because they all have the pattern "12".
What would be the rigth expression to use in this case?
+3
source to share