home *** CD-ROM | disk | FTP | other *** search
- .im man.im
- .NM change change patterns in text
- .SY change pattern [newstuff]
- .FU
- .ital change
- copies its input to its output except that
- each non-overlapping string that matches
- .ital pattern
- is replaced by the string
- .ital newstuff.
- A non-existent
- .ital newstuff
- implies deletion of the matched string.
- The patterns accepted by
- .ital change
- are the same as those used by
- .ital findp.
-
- The replacement string
- .ital newstuff
- consists of zero or more of the following elements:
- .Q1
- c literal character
- & ditto, i.e., whatever was matched
- \@c escaped character c (e.g., \@&)
- .Q2
- .EG
- To parenthesize all sums and differences of identifiers:
- .Q1
- change "[a-zA-Z][a-zA-Z0-9]*[ ]*[+-][ ]*[a-zA-Z][a-zA-Z0-9]*" (&)
- .Q2