regular expression patterns for JQuery
satya - Monday, August 10, 2009 4:23:36 PM
javascript regular expression examples
satya - Monday, August 10, 2009 4:45:37 PM
Basics
^ - begin line
$ - end line
. - any char
* - zero or more of the prev char
+ - (atleast) one or more of the prev char
? - prev char zero or one time
{n} - match prev char n time exactly
{n,m} - at least n times but no more than m
[set] - one char out of the set. use - to indicate range
[^set] - negate the set of chars
\ - escape
satya - Monday, August 10, 2009 4:46:57 PM
I want to do (abc:def)
(.+):(.+)