in reply to Re: Regular Expression: Matching arbitrary characters
in thread Regular Expression: Matching arbitrary characters
Actually, the OP's use of the s/// operator is a perfectly legitimate and sensible approach, assuming that there's no problem with obliterating the input string as you go. As you point out, using m//g is also a good approach.