Posts Tagged ‘regular expression’
Posted on June 12, 2009 - by ruby
jQuery validation engine, jquery inline form validation
jQuery validation engine, yet another nice form validation plugin for jquery javascript framework, comes with language localization supported and many predefined validation rules:
- optional: Special: Only validate when the field is not empty
- required: Field is required
- length[0,100] : Between x and x characters allowed
- minCheckbox[7] : Set the maximum checkbox autorized for a group
- confirm[fieldID] : Match the other field (ie:confirm password)
- telephone : Match telephone regEx rule.
- email : Match email regEx rule.
- onlyNumber : Numbers only
- noSpecialCaracters : No special characters allowed
- onlyLetter : Letters only
- date : Invalid date, must be in YYYY-MM-DD format
but you also could define a custom validation rule i.e:
"telephone":{
"regex":"/^[0-9-()]+$/",
"alertText":"* Invalid phone number"},
Has been tested in Internet Exploder 6 & 7, Firefox 3+, Safari 4, Chrome 1+
Posted on May 17, 2009 - by ruby
Autolink with classic asp & regular expression
Simple implementation of regular expression in Classic ASP script to create link from text (autolink), this is useful when you need to turn a bunch of text to be a clickable link when it is in a valid url format. Uses Regexp replace method.

