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 "
([A-Z][a-z]+)([.!?])" with "
ends #1" changes the text "Howard!" to "! ends Howard".
means to substitute the whole match.
#U forces any following
replacement text to uppercase,
#C to lowercase or
#E ends such case modifications; the remaining
replacement text will be substituted as-is.
#S substitutes the
next alternative, when the search pattern consists of simple
alternative bits of fixed text separated by
|'s. Characters may be
included by name in replacement text using the syntax
which substitutes a <Newline> character.
Regular Expression Commands
Copyright (C) 1984, 2020 by Lugaru Software Ltd. All rights reserved.