Regular expression - how to negate ^[A-Z]{4}[0-9]{2}$
Asked
Active
Viewed 108 times
0
styvane
- 55,207
- 16
- 142
- 150
Sukhbir Kalsi
- 3
- 3
-
Many tools offer negation like `grep -v`. In programming languages you can use something like `if(!match(str, pattern))` – hek2mgl Mar 16 '15 at 10:53
1 Answers
0
see demo here https://regex101.com/r/bO9pH0/2
/^(?![A-Z]{4}[0-9]{2}$).*/gm
Vladu Ionut
- 7,765
- 1
- 17
- 30