comparison lispref/searching.texi @ 64915:3e6c73954fda

(Regular Expressions): Document re-builder.
author Richard M. Stallman <rms@gnu.org>
date Thu, 11 Aug 2005 19:47:37 +0000
parents e836425ee789
children 04a0656bc67c
comparison
equal deleted inserted replaced
64914:6ed6c1b79d36 64915:3e6c73954fda
164 164
165 A @dfn{regular expression} (@dfn{regexp}, for short) is a pattern that 165 A @dfn{regular expression} (@dfn{regexp}, for short) is a pattern that
166 denotes a (possibly infinite) set of strings. Searching for matches for 166 denotes a (possibly infinite) set of strings. Searching for matches for
167 a regexp is a very powerful operation. This section explains how to write 167 a regexp is a very powerful operation. This section explains how to write
168 regexps; the following section says how to search for them. 168 regexps; the following section says how to search for them.
169
170 @findex re-builder
171 @cindex authoring regular expressions
172 For convenient interactive development of regular expressions, you
173 can use the @kbd{M-x re-builder} command. It provides a convenient
174 interface for creating regular expressions, by giving immediate visual
175 feedback in a separate buffer. As you edit the regexp, all its
176 matches in the target buffer are highlighted. Each parenthesized
177 sub-expression of the regexp is shown in a distinct face, which makes
178 it easier to verify even very complex regexps.
169 179
170 @menu 180 @menu
171 * Syntax of Regexps:: Rules for writing regular expressions. 181 * Syntax of Regexps:: Rules for writing regular expressions.
172 * Regexp Example:: Illustrates regular expression syntax. 182 * Regexp Example:: Illustrates regular expression syntax.
173 * Regexp Functions:: Functions for operating on regular expressions. 183 * Regexp Functions:: Functions for operating on regular expressions.