mercredi 26 juillet 2017

Overlapping Lookahead Regex

abcdef

how to match abc & abcd?

(?=(abc|abcd))
abcdef

matches only abc for some reason, even though lookahead is non capturing. abcd doesn't get matched after matching abc.

using php if that matters.

Aucun commentaire:

Enregistrer un commentaire