diff options
| author | Luc Teirlinck | 2006-03-11 21:23:11 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2006-03-11 21:23:11 +0000 |
| commit | ba44fca9cd7716cb93ec4fc914f917dd3fad1442 (patch) | |
| tree | 3cc4b6fda32a1990309233e15801749b6d938b31 | |
| parent | 6f49b4c5137e1857d542fc416714107ecdb61092 (diff) | |
| download | emacs-ba44fca9cd7716cb93ec4fc914f917dd3fad1442.tar.gz emacs-ba44fca9cd7716cb93ec4fc914f917dd3fad1442.zip | |
(Regexp Special): Use @samp for regular expressions that are not in
Lisp syntax.
| -rw-r--r-- | lispref/searching.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lispref/searching.texi b/lispref/searching.texi index 88009152cc0..9b80fdfd930 100644 --- a/lispref/searching.texi +++ b/lispref/searching.texi | |||
| @@ -476,7 +476,7 @@ never remove the special meaning of @samp{-} or @samp{]}. So you | |||
| 476 | should not quote these characters when they have no special meaning | 476 | should not quote these characters when they have no special meaning |
| 477 | either. This would not clarify anything, since backslashes can | 477 | either. This would not clarify anything, since backslashes can |
| 478 | legitimately precede these characters where they @emph{have} special | 478 | legitimately precede these characters where they @emph{have} special |
| 479 | meaning, as in @code{[^\]} (@code{"[^\\]"} for Lisp string syntax), | 479 | meaning, as in @samp{[^\]} (@code{"[^\\]"} for Lisp string syntax), |
| 480 | which matches any single character except a backslash. | 480 | which matches any single character except a backslash. |
| 481 | 481 | ||
| 482 | In practice, most @samp{]} that occur in regular expressions close a | 482 | In practice, most @samp{]} that occur in regular expressions close a |
| @@ -485,8 +485,8 @@ regular expression may try to match a complex pattern of literal | |||
| 485 | @samp{[} and @samp{]}. In such situations, it sometimes may be | 485 | @samp{[} and @samp{]}. In such situations, it sometimes may be |
| 486 | necessary to carefully parse the regexp from the start to determine | 486 | necessary to carefully parse the regexp from the start to determine |
| 487 | which square brackets enclose a character alternative. For example, | 487 | which square brackets enclose a character alternative. For example, |
| 488 | @code{[^][]]} consists of the complemented character alternative | 488 | @samp{[^][]]} consists of the complemented character alternative |
| 489 | @code{[^][]} (which matches any single character that is not a square | 489 | @samp{[^][]} (which matches any single character that is not a square |
| 490 | bracket), followed by a literal @samp{]}. | 490 | bracket), followed by a literal @samp{]}. |
| 491 | 491 | ||
| 492 | The exact rules are that at the beginning of a regexp, @samp{[} is | 492 | The exact rules are that at the beginning of a regexp, @samp{[} is |