Regular Expressions examples

  • Allow positive or negative integer input only
  • Allow positive or negative real number input only
  • Allow numeric input only
  • Allow alpha input only
  • Allow alpha-numeric input only
  • Allow maximum integer on keyup
  • Allow numeric input only, no leading zero, onkeyup
  • Allow numeric input only on keyup
  • Allow positive or negative real number, maximum 2 decimal places, on keyup
  • Allow positive or negative real number on keyup
  • Allow positive real number on keyup, limit 2 decimal places
  • Allow positive real number on keyup
  • Comprehensive email validation - generic domains
  • Comprehensive email validation - U.S. and subdomains
  • Comprehensive email validation - U.S. domains
  • Wrap selected text in various tags - crossbrowser
  • Two uppercase followed by at least one digit
  • Strip information from between two markers
  • Strip information from between two brackets
  • Change quoted text to italics
  • Count characters in a textarea
  • Count new lines in a textarea
  • Count words in a text area
  • Delete all trailing spaces
  • Delete all leading and trailing spaces
  • Eliminate path from file name
  • First character to uppercase
  • Format input onkeyup
  • Format phone number with extension
  • Insert commas for money format, onblur
  • Remove quotes
  • Remove dashes
  • Remove CR & LF
  • Zip Code validator example
  • Validating SSN to 000-00-0000

Aucun commentaire:

Enregistrer un commentaire