iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2005, 02:14 PM
WebProWorld Pro
 
Join Date: Aug 2004
Location: Maryland
Posts: 219
webmasterjunkie RepRank 0
Default Search Algo.

I have a question regarding search algo. I have a search form the searches the content on a real estate website. Excluding information pulled from the MLS, becuase it is stored in an XML file on another server.

Q: How can I get my search algo. to recognize sets of data like:

AA7639065
RC6589905

Always 2 letters followed by a series of 7 to 8 numbers? Once the data is recognized I can just redirect to the other server and perform the search.

PHP and MySQL capabilities.
Reply With Quote
  #2 (permalink)  
Old 07-08-2005, 07:40 PM
WebProWorld Pro
 
Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 109
ChrisRC RepRank 0
Default

I'm not sure I understand what you're trying to do. Scrape the info off another website?
Reply With Quote
  #3 (permalink)  
Old 07-09-2005, 08:02 PM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default What language?

What language is your search written in? It's simple in Perl to find those particular words

Code:
if ($search_term =~ /^\w\w\d+$/) {
     dostuff...
}
In some other languages, I'm not sure how regular expressions work, but I'm sure someone here could help if we knew what language you were using.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:07 PM.



Search Engine Optimization by vBSEO 3.3.0