Lugaru's Epsilon Programmer's Editor 14.04
Context:
|
Epsilon User's Manual and Reference > Commands by Topic > Changing Text > Regular Expressions > Regular Expression CommandsYou can invoke a forward regex search with the Ctrl-Alt-s key, which runs the command regex-search. The Ctrl-Alt-r key invokes a reverse incremental search. You can also enter regular expression mode from any search prompt by typing Ctrl-t to that prompt. For example, if you press Ctrl-s to invoke incremental-search, pressing Ctrl-t causes it to enter regular expression mode. See Searching for a description of the searching commands.The key Alt-* runs the command regex-replace. This command works like the command query-replace, but interprets its search string as a regular expression. In the replacement text of a regex replace, the # character followed by a digit n from 1 to 9 has a special meaning in the replacement text. Epsilon finds the nth parenthesized expression in the pattern, counting left parentheses from 1. It then substitutes the match of this subpattern for the #n in the replacement text. For example, replacing
with
changes
to
If #0 appears in the replacement text, Epsilon substitutes the
entire match for the search string. To include the actual character
# in a replacement text, use ##. In a search pattern, you can
follow the open parenthesis with
The replacement text can use the syntax
When the search string consists of multiple words of literal text
separated by the When you don't use the above syntax, replacing preserves the case of each match according to specific rules. See the replace-by-case variable for details.
Characters other than
|