Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: help with regular expression required

by AppleFritter (Vicar)
on Aug 13, 2014 at 12:12 UTC ( [id://1097262]=note: print w/replies, xml ) Need Help??


in reply to help with regular expression required

This is the script I've been using in order to replace creationd id. perl -pi.bak -e 's{creationid=".+?"}{creationid="Simon Simonsen"}g;' file.xml

This works for me, if file.xml contains only the string you provided above. Can you try to whittle your ~1 GB file down to a simpler test case that fails, e.g. by bisecting it? Doing so may prove instructive in identifying the problem; alternatively, it'll make it easier for us monks to help you if we've got both an "it works" case and a "it stops working if I do this" case.

  • Comment on Re: help with regular expression required

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1097262]
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: (3)
As of 2024-04-20 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found