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 -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -