in reply to Re: How do I use regex to strip out specific characters in a string?
in thread How do I use regex to strip out specific characters in a string?
You also should use a tr when you are only trying to affect a single character:
runrig below gave you a very elegant solution using substr and trtr/://d; # instead of s/://g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How do I use regex to strip out specific characters in a string?
by dragonchild (Archbishop) on Aug 23, 2001 at 00:54 UTC | |
by Sifmole (Chaplain) on Aug 23, 2001 at 00:58 UTC | |
by dragonchild (Archbishop) on Aug 23, 2001 at 01:04 UTC | |
by Sifmole (Chaplain) on Aug 23, 2001 at 01:14 UTC | |
by dragonchild (Archbishop) on Aug 23, 2001 at 17:09 UTC |