Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

special symbol removal

by sarvan (Sexton)
on Jul 29, 2011 at 07:59 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2023-09-25 09:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found