A character class is a grouping of characters any one of which can validly appear at that spot in the text and match on that part of the regular expression. By grouping characters together into a character class we can specify the pattern in fewer characters than would be needed if we were to include […]
- The Basics
- Basic DOM
- DOM Tables
- DOM Forms
- Server Interaction
- Regular Expressions
- Error Handling
- Using Functions
- Object Oriented
- Extend Objects
- Homework Questions
- The Bad Bits
There are fifteen characters that have a special meaning and which need to be escaped inside an expression where we want the character to have its regular meaning. These fifteen characters are collectively known as meta characters.
Now that we have looked at a few of the things that can be done with regular expressions it is time to start looking at the meanings of the codes that can be used within the expressions themselves. The first two special characters we will look at are those which specifically match to the start […]
Regular expressions can also be used to split a piece of text into separate sections that are then inserted into an array. All of the content between each of the matches ends up in the array with the text that matched the expression being discarded.
There are a number of single characters that can be added to the end of a regular expression that affect how the expression is processed. The two most common are ignore case and global. By adding an ‘i’ after the closing slash of the expression we allow the matching to take place without any consideration […]
This site is © copyright Stephen Chapman - Felgall Pty Ltd 2011-2016.