need help cleaning up a search



Hello all,

I am using the following to pull a search query from a google search:

( my $search1 ) = $url =~ /q=(.*)/;
my $search = (split '&', $search1)[0];

If the search looks at this string:

http://www.google.com/search?hl=en&q=+erika+michelle+barre&btnG=Google+Search

Then my search = +erika+michelle+barre

How would I chop off any funny characters (+, %, -, ...) from the front of the results (and off the end for that mater)

Sometimes there are even +++ before the text I need to get.

Ryan

.



Relevant Pages

  • Re: need help cleaning up a search
    ... I am using the following to pull a search query from a google search: ... If the search looks at this string: ... URI and URI::QueryParam are core modules. ...
    (perl.beginners)
  • Re: flame sprayer?
    ... Trans-Oceanic Royal D7000 and the Pentax ME Super) was a rather ... I believe it uses CO2 cartridge to ... carry a string..Got lots of string spools, ... cock it..and pull the trigger..a piston with a spike on the end slams ...
    (rec.crafts.metalworking)
  • Re: Help for Harlans Pull
    ... Function pull(xref As String) As Variant ... pull = CVErr ... On Error GoTo CleanUp 'immediate clean-up at this point ... >> Dave Peterson ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Perpetum mobile
    ... A string makes it pull, ... pull very strongly, especially when the ball drops, like a rubber, the ... string makes the metal ball go down and bounce back, ...
    (sci.astro)
  • Re: Perpetum mobile
    ... A string makes it pull, ... So anyway, imagine a spring that has a big heavy metal ball, and the ... and this rolling creates some electricity, a little, just enough to ...
    (sci.astro)