[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Gotta love perl...



Title: Re: [Omaha.pm] Gotta love perl...

What? My 4 seconds of QA were insufficient?   :)

Try something like this?

$ perl -pi -e 's/\|\|[^ -~](\d\d:\d\d)/\|\|\n$1/g' j

j



On 2/12/09 7:42 AM, "Sean Baker" wrote:

It would be even better if it worked...  J

I don’t think this is working as you intended, or it doesn’t for me:
 
$ perl -pi -e 's/\|\|[^ -~]\d\d:\d\d/\n/g' j
 
The regex seems to be corrupting the timestamp.  Look at the beginning of each line after you run it.