I can’t seem to figure out how to compose a regular expression (used in Javascript) that does the following:
Match all strings where the characters after the 4th character do not contain “GP”.
Some example strings:
- EDAR – match!
- EDARGP – no match
- EDARDTGPRI – no match
- ECMRNL – match
I’d love some help here…
Use zero-width assertions:
Explanation: