Stack Overflow Asked by MatthewProSkils on November 18, 2021
I have a pretty simple piece of regex code: ({)[^}]+(})
, which only gets the first set of ({)[^}]+(}). Is there a way to get all sets of brackets?
just add the global flag g
let regexp = /({)[^}]+(})/g;
Answered by sonEtLumiere on November 18, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP