Last Updated: February 25, 2016
·
882
· blowery

Beware /g on regexps in JS

Successive matches may fail if the same string is used.

See http://jsbin.com/ixoqan/1/edit for an example.

1 Response
Add your response