WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2005, 01: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, 06:40 PM
WebProWorld Pro
 

Join Date: Mar 2004
Location: Pittsburgh, PA, USA
Posts: 114
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, 07:02 PM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
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
Tags: ,



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

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


Search Engine Optimization by vBSEO 3.2.0