in reply to How do I use regex to strip out specific characters in a string?

i'd handle this with the following:
($stamp = join '_', (split '[/ ]', $stamp)[1,2,4]) =~ tr/://d;
separate it into multiple lines for clarity if desired.

cheers,

- danboo
  • Comment on Re: How do I use regex to strip out specific characters in a string?
  • Download Code