diff options
Diffstat (limited to 'lisp/obsolete/sregex.el')
-rw-r--r-- | lisp/obsolete/sregex.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/obsolete/sregex.el b/lisp/obsolete/sregex.el index 80b2c92be09..0a15f50be28 100644 --- a/lisp/obsolete/sregex.el +++ b/lisp/obsolete/sregex.el @@ -338,15 +338,15 @@ computed (i.e., non-constant) values in `sregexq' expressions. So automatically quote its values. Literal sregex clauses must be explicitly quoted like so: - (sregex '(or \"Bob\" \"Robert\")) => \"Bob\\\\|Robert\" + (sregex \\='(or \"Bob\" \"Robert\")) => \"Bob\\\\|Robert\" but computed clauses can be included easily, allowing for the reuse of common clauses: - (let ((dotstar '(0+ any)) - (whitespace '(1+ (syntax ?-))) - (digits '(1+ (char (?0 . ?9))))) - (sregex 'bol dotstar \":\" whitespace digits)) => \"^.*:\\\\s-+[0-9]+\" + (let ((dotstar \\='(0+ any)) + (whitespace \\='(1+ (syntax ?-))) + (digits \\='(1+ (char (?0 . ?9))))) + (sregex \\='bol dotstar \":\" whitespace digits)) => \"^.*:\\\\s-+[0-9]+\" Here are the clauses allowed in an `sregex' or `sregexq' expression: |