Mega Code Archive

 
Categories / Perl / Regular Expression
 

$text =~ tra-zd-za-c

$text = "hello there!"; print "$text\n"; $text =~ tr/a-z/d-za-c/; print "$text\n";