Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my $code = "xx;1:{}/x %"; # I want to keep "/" from being filtered out $code =~ s/[^\w"':.;]//g; print $code;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RegEx Character Class
by moritz (Cardinal) on Sep 12, 2007 at 07:26 UTC | |
|
Re: RegEx Character Class
by atemon (Chaplain) on Sep 12, 2007 at 07:29 UTC | |
by blazar (Canon) on Sep 12, 2007 at 09:13 UTC |