Daily Archives: March 17, 2009

Javascript regexp usage

ShareI found this reference very helpful because I tend to forget the difference between match, test, search and so on. Description Example RegExp.exec(string) Applies the RegExp to the given string, and returns the match information. var match = /s(amp)le/i.exec(“Sample text”) … Continue reading

Posted in javascript | Tagged , , | Leave a comment