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

Nobody has used tr yet:
substr($str,0,4) = ''; $str =~ tr/://d; $str =~ tr[/ ][__];

Update: Hmm, thought I was wrong, but I was just mistaken :)

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