Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

by Happy-the-monk (Abbot)
on Mar 21, 2004 at 14:18 UTC ( #338454=note: print w/replies, xml ) Need Help??

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

you can also use $a =~ s/\W//g;

make that   s/[\W_]//g;   to take away the   _   too.

And careful with   locale!   That will not get rid of Umlauts and word characters with accents and such. It will still get rid of special characters though.


Replies are listed 'Best First'.
Re: Re: Re: leaving only [a-zA-Z0-9]
by neniro (Priest) on Mar 21, 2004 at 14:38 UTC
    "That will not get rid of Umlauts and word characters with accents and such." - that are the specialchars I've meant.
    Sorry I should have been more detailed in my explanation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://338454]
[1nickt]: FTR I agree with you about "design." Just not sure about the trajectory of evolution. THere are a lot of dead-ends in the evolutionary paths. I suspect homo sapiens is just one of them.
[james28909]: thanks for the vid holli, i do like it. thanks for sharing :)
[holli]: gives me goosebumps every time I watch it
holli gotta grab some groceries before dawn. l8ters
[erix]: s/dawn/dusk/
[erix]: (you're welcome :P)
[james28909]: you know, i had a thought a few mnths back. what if this universe were just a puzzle, waiting for life to figure it out!
[james28909]: what if one day we are able to grab the curtain that is "spacetime" and pull it back to reveal <insert imagination here> pulling at levers and ropes xD
[holli]: like dorothy?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2017-12-15 14:39 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.