($newstring = $oldstring) =~ s/456/ 456-/; [download]
In reply to Re: Use Regular Expression to add spaces to a string by JavaFan in thread Use Regular Expression to add spaces to a string by omegaweaponZ