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.
Use some regular expressions to determine all the possible ways someone could search. There are many references for regex's on the web.