Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: JSON parser as a single Perl Regex

by fanasy (Sexton)
on Nov 10, 2019 at 03:24 UTC ( #11108520=note: print w/replies, xml ) Need Help??


in reply to JSON parser as a single Perl Regex

I think maybe need \s* in (?<STRING>...)also as some JSON file have space outside of ""

(?<STRING> \s* ( " (?: [^\\"]+ | \\ ["\\/bfnrt] )* " )\s* (?{ [$^R, $^N] }) )

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11108520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2021-01-21 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?