Searching and Replacing with Regular Expressions

Regular expressions are control characters that describe character combinations or patterns in text. For example, if you want to find all occurrences of years from 1700–1799, the pattern is “17” followed by any combination of two numbers from 0–9. You can use a number of special characters to define the search pattern. For example, the backslash (\), dollar sign ($), and question mark (?) are all special characters. When using regular expressions, it is important to know these characters; if you are looking for such special characters in your text, you need to precede the character with a backslash to indicate that it is part of the character search and not used as a special character.

Appendix ...

Get macromedia Dreamweaver 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.