Stan's suggestion is good. indexOf() will suffice for your case ( and for many other cases).
If you're still keen in using regular expression from the link that I'd posted, you could use it with String's
match() method.
After reading Stan's suggestion, I think
you should just use indexOf() to keep things simple.
Originally posted by hrin kuek:
erm sorry... I feel lost lookin at tt page.. if it's not too much trouble, could you please give me an example?
Thanks again!