in reply to regex "filters", stripping characters
You are using | for the delimiter, and have a | in the regex. Either use a different delimiter, or better yet, use tr///d to remove single characters from a string. IE:$_e_if = s|(\/|\"|\,)||g; # Get rid of the / and/or " and/or ,
Note: You are also missing a ~ in the s/// lines. = should be =~.$_e_if =~ tr{/",}{}d;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex "filters", stripping characters
by powerhouse (Friar) on Jan 26, 2004 at 05:00 UTC |