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?
Asked
Active
Viewed 26 times
-1

MatthewProSkils
- 364
- 2
- 13
-
How are you using that regex, what function are you using exactly? – jdaz Jul 22 '20 at 04:25
-
just like `str.match(/(\{)[^}]+(\})/)` – MatthewProSkils Jul 22 '20 at 04:26
-
1Does this answer your question? [Regular expression to match balanced parentheses](https://stackoverflow.com/questions/546433/regular-expression-to-match-balanced-parentheses) – cronoik Jul 22 '20 at 04:26