Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: JSON parser as a single Perl Regex

by fanasy (Sexton)
on Nov 10, 2019 at 03:24 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found