Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Removing Bad Characters from a String

by moot (Chaplain)
on May 08, 2005 at 23:15 UTC ( [id://455051]=note: print w/replies, xml ) Need Help??


in reply to Removing Bad Characters from a String

$bad_chars = qr{[!~?/@]}; # remove any potential bad characters $filename =~ s/$bad_chars//g;
You might want to read perldoc perlre for more.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://455051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found