How to convert this {(?:[^{}]*|(?R))*}
PCRE regex to js regex without any external library?
Asked
Active
Viewed 273 times
0
-
Welcome to SO. You might find reading the site [help section](https://stackoverflow.com/help) useful when it comes to [asking a good question](https://stackoverflow.com/help/how-to-ask), and this [question checklist](https://meta.stackoverflow.com/questions/260648/stack-overflow-question-checklist). Code that you've worked on to solve the problem should include a [mcve], and be included in your question. – Andy Jul 19 '21 at 12:01
-
JSON isn't a regular language, which means you can't use a regex on it without it being fragile. – Luke Briggs Jul 19 '21 at 12:04