samedi 25 avril 2015

Regular expression to compare the first n characters of a string array


I am working on some auto complete example and i want only the words starting with the entered text.

EG:-if i type "al" then i want only first two as my results not the 3rd one

**Al**abama
**Al**aska
c**al**lifornia


Aucun commentaire:

Enregistrer un commentaire