Regular expression - how to negate ^[A-Z]{4}[0-9]{2}$
Asked
Active
Viewed 132 times
0

styvane
- 59,869
- 19
- 150
- 156

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
- 8,075
- 1
- 19
- 30