How can i remove the rest characters and get only John
This is the Output i need: John
$str = '/2010-04-01/Tom/Ken/Fred/John.jso'; $str =~s/Tom//g; print $str;
In reply to remove words with regex by frank1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |