I think maybe need \s* in (?<STRING>...)also as some JSON file have space outside of ""
(?<STRING> \s* ( " (?: [^\\"]+ | \\ ["\\/bfnrt] )* " )\s* (?{ [$^R, $^N] }) )
In reply to Re: JSON parser as a single Perl Regex
by fanasy
in thread JSON parser as a single Perl Regex
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |