'regex js how to to exclude from a match two consecutive zeros?
I have the following regular expression
^[2-9][0-9]{3}-W([0-5][0-3]|(?!00))
https://regex101.com/r/OOCxzT/1
I need to exclude from the match a string with two consecutive 00 for instance
2022-W00
I added (?!00) but does not seem to work properly.
Any idea how to fix it?
Solution 1:[1]
Is this what you need ? or more digit after 'W' ?
^[2-9][0-9]{3}-W([0-5][1-3]|[1-5][0-3])
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | mkvia |
