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

Re: When a regexp with /g needs to be run .. twice

by Anonymous Monk
on Mar 05, 2018 at 03:43 UTC ( [id://1210335]=note: print w/replies, xml ) Need Help??


in reply to When a regexp with /g needs to be run .. twice

If you are "cleaning up JSON," can you maybe use an existing Perl JSON implementation to read the existing data successfully? If the Perl library could be forgiving of what it sees and correct in how it interprets it, then you would have the data correct in-memory. Then maybe then you could use that library to then write-out a new JSON file that does conform to standards. This alternative approach, if successful, might be a great sight easier than the "cleaning up" approach that you are now attempting. Worth a try ...
  • Comment on Re: When a regexp with /g needs to be run .. twice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found