need help cleaning up a search
- From: webmaster@xxxxxxxxxxxx (FamiLink Admin)
- Date: Fri, 26 Jan 2007 20:46:34 -0700
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
.
- Follow-Ups:
- Re: need help cleaning up a search
- From: Rob Dixon
- Re: need help cleaning up a search
- From: DJ Stunks
- Re: need help cleaning up a search
- References:
- Use of uninitialized value in string eq
- From: Jen Spinney
- Re: Use of uninitialized value in string eq
- From: Rob Dixon
- Use of uninitialized value in string eq
- Prev by Date: Re: Use of uninitialized value in string eq
- Next by Date: Re: need help cleaning up a search
- Previous by thread: Re: Use of uninitialized value in string eq
- Next by thread: Re: need help cleaning up a search
- Index(es):
Relevant Pages
|
|