SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 559 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


[^abc] Any character except a, b, or c [^etc] matches each character in GIFs, but not
etc in the phrase GIFs etc.
[a-z] Any character in the range from a to z [l-p] matches l and o in lowery, and m, n, o, and
p in pointman.
x|y Either x or y boy|girl matches both boy and girl.
Using grouping with regular expressions
All the regular expressions described previously relate to finding a certain string of text within your documents.
But after you??™ve located a particular string using regular expressions, how can you use that particular
string in the Replace With field? For example, the following list of names:
n John Jacob Jingleheimer Schmidt
n James T. Kirk
n Cara Fishman
can be rearranged so that the last name is first, separated by a comma, like this:
n Schmidt, John Jacob Jingleheimer
n Kirk, James T.
n Fishman, Cara
Dreamweaver enables replacement of regular expressions through grouping expressions. Grouping is perhaps
the single most powerful concept in regular expressions. With it, any matched text pattern is easily
manipulated. To group a text pattern, enclose it in parentheses in the Find text field. Regular expressions
can manage up to nine grouped patterns. In the Replace text field, each grouped pattern is designated by a
dollar sign ($) in front of a number (1??“9) that indicates the position of the group.


Pages:
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571