Programs would be extremely awkward to write if it wasn’t possible to create loops within the code so as to repeat the ame code a variable number of times. Regular expressions contain a similar notation for handling repetitions within a pattern so that we can specify the minimum and maximum number of times that particular […]
- 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
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 […]
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.
This site is © copyright Stephen Chapman - Felgall Pty Ltd 2011-2015.