You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that, to use your first example subject string, there is only one opening delimiter in the string (“messages: {“) and two closing delimiters (“}”). Although I would definitely like to update XRegExp.matchRecursive to provide an option to support subject strings with non-balanced delimiters, that just hasn’t been built yet (see #96 for details).
Changing the opening delimiter to “messages: {|{“ should fix this and work as you expect. You could then check your matches to see whether they start with “messages: {“ or just “{“, and discard the latter.
I have below code
for both I receive Error: Unbalanced delimiter found in string at Function.XRegExp.matchRecursive
I expect to find all
messages: { ... }
Please take a look at https://repl.it/@RezaRahmati/xregexp
The text was updated successfully, but these errors were encountered: