mercredi 5 octobre 2016

Capturing Group Regex Javascript match returns two values why?

Vote count: 0

Why does "abcabcabc".match(/(abc){3}/);

return two entries ["abcabcabc", "abc"]? both "abcabcabc" and "abc"

similarly,

["1234", "1234"]

asked 13 secs ago

Let's block ads! (Why?)



Capturing Group Regex Javascript match returns two values why?

Aucun commentaire:

Enregistrer un commentaire