Regular Expressions
  1. Regular expressions [View Source] [Download] [Mail it]
    This example uses a regular expression to validate if a date has been entered in the correct format.
  2. Regular expressions [View Source] [Download] [Mail it]
    With the RegExp object, you can substract substrings which match a pattern from a string. This example shows you how to do this.
  3. Regular Expressions: Match example [View Source] [Download] [Mail it]
    This example uses the RegExp-match method to validate a phone number.
  4. Regular Expressions: stripping HTML tags [View Source] [Download] [Mail it]
    Here is a way to strip HTML tags from a string with a simple regular expression
Categories