in reply to regex "filters", stripping characters

The problem is in the second line:
$_e_if = s|(\/|\"|\,)||g; # Get rid of the / and/or " and/or ,
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 =~ tr{/",}{}d;
Note: You are also missing a ~ in the s/// lines. = should be =~.

Replies are listed 'Best First'.
Re: regex "filters", stripping characters
by powerhouse (Friar) on Jan 26, 2004 at 05:00 UTC
    Wow, THANKS! I cannot believe I did not see that!

    Thanks. I guess I need to call it a night :o)

    Thank you so very much...

    Richard