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

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

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -