1

have a question for you.

Simply:

let`s have a string:

'aaa'

and regex pattern:

/aa/g

I would expected a two results, first + second a, and second + third a.

Instead, I got only first two a`s (I though regex will not skip second 'a' perfoming second (or third.. etc) match).

So, how to write regex that will return two matches ('aa' (1. + 2. a) and 'aa' (2. + 3. a)) ?

Thanks!

0 Answers0