Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Multiple substitutions in large files

by ikegami (Pope)
on May 09, 2005 at 14:58 UTC ( #455196=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/\s*\|\s*/\|/g;
    s/^\.?(?=\|)/\\N/;
    s/(?<=\|)\.?(?=\||$)/\\N/g;
    s/(?<=\d{2}:\d{2}:\d{2})\.\d+//g;
    s/(?<=\d{5})-(?:\d{1,4}|\s+)//;
    
  2. or download this
    s/\s*\|\s*/\|/g;
    s/^(?=\|)/\\N/;
    ...
    s/(?<=\|)\.(?=\|)/\\N/g;
    s/(?<=\d{2}:\d{2}:\d{2})\.\d+//g;
    s/(?<=\d{5})-(?:\d{1,4}|\s+)//;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2019-12-08 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?