in reply to How do I use regex to strip out specific characters in a string?
update Golf! Golf!while (<DATA>){print join "_",(split/[ \/]/,$_)[1,2,4]} __DATA__ Wed 08/22/2001 2:38p
update 22 : s/.{3,4} //g&&y|/|_|;
update I wasn't removing the colon :( so, at 23 s/.{3,4} //g&&y|/:|_|d
update as dutifully noted below, by danboo.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do I use regex to strip out specific characters in a string? (boo)
by Sifmole (Chaplain) on Aug 23, 2001 at 01:00 UTC | |
by danboo (Beadle) on Aug 23, 2001 at 01:25 UTC | |
by Sifmole (Chaplain) on Aug 23, 2001 at 16:13 UTC | |
|
Re: Re: How do I use regex to strip out specific characters in a string? (boo)
by danboo (Beadle) on Aug 23, 2001 at 00:56 UTC |