regex - Regular expression match issue -
i have simple regular expression: .}
, simple text: {}}
why single match:
{}
i expecting two:
{}
}}
please see here code snippit.
regex matches non-overlapping. maybe closer want:
/(?=})}/g
i think want behind not ahead isn't supported on regexr.com because it's not supported in java script
/(?<=})}/g
Comments
Post a Comment