Wednesday, May 23, 2012

Non capturing group issue

Why following return ["vddv"] instead of ["dd"]:



"aaavddv".match(/(?:v).*(?:v)/)




No comments:

Post a Comment