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...
Saturday, December 22, 2007
A couple of tutorials back we looked at character classes that can be defined using []. While any combination of alternative characters can be defined using character classes as described in that...
Saturday, December 22, 2007
The predefined classes in the prior tutorial are not the only situations where an ordinary letter can be escaped in order to give it a special meaning. There are a number of common characters tha...
Saturday, December 22, 2007
While most of the time your regular expressions can define all of the necessary characters using the ordinary characters and the common escape characters that we have already looked at, there may...
Saturday, December 22, 2007
Earlier in this tutorial series we saw how to add boundary tests for the start and end of the text string to a regular expression through the use of ^ and $ to represent the start and end of the ...
Saturday, December 22, 2007
Up to now in this tutorial series we have looked at how to define single and multiple occurrences of single characters that we want to test for in our regular expression. The real power of regula...