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

Popular posts from this blog

xslt - Substring before throwing error -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -