Mimi Cafe wrote:
Yes all non-alphanumeric and non-whitespace. I have a database for people to
search using a keyword or all alphanumerical words (including space) are
valid, but no special characters. All the characters I am substituting below
are invalid characters for the search.

$string =~ s/\$%\?\^!\+\@'\\|`\?#~=\*><"//g;

$string =~ s/[^[:space:][:alnum:]]//g;


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Eliminate software piracy:  use only FLOSS.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to