Just a thought. Since you are only switching one character you could use y/// or tr/// instead of s/// and you would not overwrite your match/capture variables. Like: tr/:/-/.
In reply to Re^3: Can anyone tell me what is going on with my code?(Regex match variables)
by mr_ron
in thread Can anyone tell me what is going on with my code?(Regex match variables)
by samh785
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |