help with live search

Discussion in 'JavaScript' started by rps111, Aug 3, 2007.

  1. #1
    I am a newbie in PHP and Javascript programming. I am trying to make a live search using Ajax.

    I face a difficulty that the visitors sometimes type the abbreviations and sometimes the full phrase/words to search. Can I set optional values (i.e. abbreviations also) along with the full phrase/word to be searched?

    e.g. visitors can search by US, USA, U S A, U.S.A., United States....and many other combinations.

    Thanks in advance.
     
    rps111, Aug 3, 2007 IP
  2. memerson

    memerson Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use some regular expressions to determine all the possible ways someone could search. There are many references for regex's on the web.
     
    memerson, Aug 17, 2007 IP