Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: apostrophes and security

by trammell (Priest)
on Aug 15, 2005 at 15:15 UTC ( #483885=note: print w/ replies, xml ) Need Help??

in reply to apostrophes and security

One method of deleting all undesirable characters:

$value =~ tr/A-Za-z0-9_//cd; # delete non-\w chars

Comment on Re: apostrophes and security
Download Code
Replies are listed 'Best First'.
Re^2: apostrophes and security
by deadnancy (Novice) on Aug 16, 2005 at 04:27 UTC
    Thanks, trammell, but that regex kills ampersands and semicolons, both necessary for what I want to do.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2016-02-10 21:11 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (354 votes), past polls