When the command re-builder
is invoked, a buffer named “✳︎RE-Builder✳︎” is created. Activate Casual RE-Builder with the binding {{{kbd(C-o}}} (or one of your preference).
At the top of the menu shows the title “RE-Builder” with the target buffer enclosed in parenthesis. The regexp pattern will be applied to the target buffer. The target buffer can be changed with the “b Target buffer” menu item.
Emacs supports three different regexp syntax: 1) read, 2) string, 3) Rx. Use the “x Syntax” menu item to alter it. The current syntax is shown in parenthesis.
If multiple sub-expressions are in the regexp pattern, then they can be observed via the “s Subexp mode” menu item.
If the regexp pattern entered in “✳︎RE-Builder✳︎” finds multiple matches, a match can be navigated to via the “p Previous” and “n Next” menu items.
Once a desired regexp pattern is defined, there are two menu items that can be used to export (copy) it to the kill-ring for further use.
query-replace-regexp
).
string
.
dired-do-find-regexp
and dired-do-find-regexp-and-replace
.
string
.
The menu item i will invoke the Info page for regexp syntax with respect to the current syntax type.
Select “q Quit” to exit the RE-Builder tool.
By enabling “u Use Unicode Symbols” from the Settings menu, Casual RE-Builder will use Unicode symbols as appropriate in its menus. The following mapping is shown in the table below:
Name | Plain | Unicode |
---|---|---|
:previous | Previous | ↑ |
:next | Next | ↓ |