The backslash character (\) is used to escape special characters so that they can be included in
a search. For example, if you want to look for an asterisk, you need to specify it as follows: \*.
Likewise, when trying to find the backslash character, precede it with another backslash character: \\.
Matching character positions and repeating characters
With regular expressions, not only can you match the type of character, but you can also match its position
in the text. This feature enables you to perform operations on characters at the beginning, end, or middle of
the word or line. Regular expressions also enable you to find instances in which a character is repeated an
unspecified number of times or a specific number of times. Combined, these features broaden the scope of
the patterns that can be found. Table 8-4 details the options available for matching by text placement and
character repetition.
TIP TIP
270
Designing and Crafting Core Pages Part II
TABLE 8-4
Regular Expression Character Positions and Repeating Characters
Character Matches Example
^ If searching text in the current document, this If searching text in the current document, ^l
only finds the search string if it immediately matches the first l in Call me Ishmael. only if the
follows the cursor.
Pages:
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568