summaryrefslogtreecommitdiff
path: root/devdocs/elisp/regular-expressions.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/regular-expressions.html
new repository
Diffstat (limited to 'devdocs/elisp/regular-expressions.html')
-rw-r--r--devdocs/elisp/regular-expressions.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/devdocs/elisp/regular-expressions.html b/devdocs/elisp/regular-expressions.html
new file mode 100644
index 00000000..02a98e0b
--- /dev/null
+++ b/devdocs/elisp/regular-expressions.html
@@ -0,0 +1,31 @@
+ <h3 class="section">Regular Expressions</h3> <p>A <em>regular expression</em>, or <em>regexp</em> for short, is a pattern that denotes a (possibly infinite) set of strings. Searching for matches for a regexp is a very powerful operation. This section explains how to write regexps; the following section says how to search for them. </p> <p>For interactive development of regular expressions, you can use the <kbd>M-x re-builder</kbd> command. It provides a convenient interface for creating regular expressions, by giving immediate visual feedback in a separate buffer. As you edit the regexp, all its matches in the target buffer are highlighted. Each parenthesized sub-expression of the regexp is shown in a distinct face, which makes it easier to verify even very complex regexps. </p> <p>Note that by default Emacs search ignores case (see <a href="searching-and-case">Searching and Case</a>). To enable case-sensitive regexp search and match, bind <code>case-fold-search</code> to <code>nil</code> around the code you want to be case-sensitive. </p> <table class="menu" border="0" cellspacing="0"> <tr>
+<td align="left" valign="top">• <a href="syntax-of-regexps" accesskey="1">Syntax of Regexps</a>
+</td>
+<td> </td>
+<td align="left" valign="top">Rules for writing regular expressions. </td>
+</tr> <tr>
+<td align="left" valign="top">• <a href="regexp-example" accesskey="2">Regexp Example</a>
+</td>
+<td> </td>
+<td align="left" valign="top">Illustrates regular expression syntax. </td>
+</tr> <tr>
+<td align="left" valign="top">• <a href="rx-notation" accesskey="3">Rx Notation</a>
+</td>
+<td> </td>
+<td align="left" valign="top">An alternative, structured regexp notation. </td>
+</tr> <tr>
+<td align="left" valign="top">• <a href="regexp-functions" accesskey="4">Regexp Functions</a>
+</td>
+<td> </td>
+<td align="left" valign="top">Functions for operating on regular expressions. </td>
+</tr> <tr>
+<td align="left" valign="top">• <a href="regexp-problems" accesskey="5">Regexp Problems</a>
+</td>
+<td> </td>
+<td align="left" valign="top">Some problems and how they may be avoided. </td>
+</tr> </table><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Regular-Expressions.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Regular-Expressions.html</a>
+ </p>
+</div>