Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

special symbol removal

by sarvan (Sexton)
on Jul 29, 2011 at 07:59 UTC ( [id://917402]=perlquestion: print w/replies, xml ) Need Help??

sarvan has asked for the wisdom of the Perl Monks concerning the following question:

Hi there,

I am doing a web related script in which i use the google's result snippet of each query. When i process this snippet many times i come across different symbols in snippet.

like ,.:([] etc. many unknown symbols too.. Also numbers occur many times.

Is there any special regular expression which removes any kind of symbols from a specified sentence in perl

Plz let me know.. thanks.

Replies are listed 'Best First'.
Re: special symbol removal
by moritz (Cardinal) on Jul 29, 2011 at 08:05 UTC
Re: special symbol removal
by Anonymous Monk on Jul 29, 2011 at 08:36 UTC
    You should also find the tr operator with the /c and /d options useful.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-24 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found