Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: leaving only [a-zA-Z0-9]

by BrowserUk (Pope)
on Mar 21, 2004 at 13:51 UTC ( #338449=note: print w/replies, xml ) Need Help??


in reply to leaving only [a-zA-Z0-9]

See perlop "Quote-like operators".

$a =~ tr[A-Za-z0-9][]cd;

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-11-30 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?