Saturday, December 22, 2007
A regular expression is a pattern that uses a special syntax to describe the content of a text field. It can be used either to validate that the string contains a valid value or alternatively it ...
Saturday, December 22, 2007
Regular expressions are a very powerful tool when it comes to being able to perform field validations, compare values, perform substitutions and numerous other tasks that would otherwize require ...
Saturday, December 22, 2007
As well as being able to test if some text contains a particular pattern we can also use regular expressions to retrieve all of the occurrences of a particular pattern from within some text and s...
Saturday, December 22, 2007
The replace method available on string objects can be used to substitute one value for another in any text string. While this method can use ordinary text strings for both the text to find and th...
Saturday, December 22, 2007
The split method available on string objects can also be used with regular expressions. This allows you to be a bit more flexible in the delimiters that you use within a text string that is typed...
Saturday, December 22, 2007
So far the tutorials on regular expressions have been looking at how to use them in your Javascript code. I started the series by covering that first since there seemed little point in covering h...
Saturday, December 22, 2007
The ^, $, and \ characters that we looked at in the last tutorial have a special meaning in the regular expression syntax. Such characters are commonly known as meta characters. There are a numbe...
Saturday, December 22, 2007
The [] characters are used with regular expressions to define what is known as a character class. The simplest use for a character class is to define a number of different characters one of which...
Saturday, December 22, 2007
So far all we have looked at with regular expressions involves us specifying each character (or list of alternatives) that we want to match. Often what we are trying to match will involve multipl...
Saturday, December 22, 2007
Now that we have introduced the idea of repeatitions within a regular expression the possibility arises of their being more than one way of matching the supplied enter. Let's say that we have...