Epsilon User's Manual and Reference >
Command Reference >
|Substitute for replace expressions. ||Alt-*|
This command functions like query-replace, but starts in regular
- matches either pat1 or pat2.
- matches zero or more matches of pat.
- matches one or more matches of pat.
- matches zero or one matches of pat.
- matches any of the characters a, b, or x.
- matches any but a, b, or x.
- matches a, b, c, ... z, or 3.
- matches any character except newline.
- ( )
- group patterns for
- only matches at the beginning of a line.
- only matches at the end of a line.
- means the character with ASCII code 50.
- removes the special meaning from the following character, so that
%$ matches only $.
- marks the end of the match. The command does not change any
characters that match the pattern after the exclamation point.
In the replacement text,
#1 means substitute the part of the text
that matched the first parenthesized pattern piece. For example,
using regex-replace to replace "
#2 ends #1" changes the text "Howard!" to "! ends Howard".
#0 means to substitute the whole match.
#U forces any
following replacement text to uppercase,
lowercase or capitalized.
#E ends such case modifications; the
remaining replacement text will be substituted as-is.
substitutes the next alternative, when the search pattern consists of
simple alternative bits of fixed text separated by
Characters may be included by name in replacement text using the
#<Newline>, which substitutes a <Newline> character.
Regular Expression Commands
Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.