Andre wrote:
> Hi
> How can y give s sbstition order of the kind
> @string=~s/nonalfanum//g;
> in these two cases?
> 1-wich will search and replace with "" (empty char) all nunnumeric or
> nonalphabetic chars?

    s/[\W_]//g;

> 2-wich will search and replace with "" (empty char) all nunnumeric or
> nonalphabetic chars with the exception of "-","_","@","." ?


    s/[^\w-@.]//g;

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to