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...
"EDARGP".slice(4).indexOf('GP') == -1
? – JesseBuesking Dec 6 '11 at 23:05