; * lisp/emacs-lisp/shortdoc.el (regexp): less contrived rx example

This commit is contained in:
Mattias Engdegård 2020-10-28 15:05:35 +01:00
parent bd3ecfef84
commit bb3d13ac35

View file

@ -665,7 +665,7 @@ There can be any number of :example/:result elements."
:eval (regexp-opt-charset '(?a ?b ?c ?d ?e)))
"The `rx' Structured Regexp Notation"
(rx
:eval (rx bol (| (* "f") (+ "o") (? "o")) (| digit space) (group "bar")))
:eval (rx "IP=" (+ digit) (= 3 "." (+ digit))))
(rx-to-string
:eval (rx-to-string '(| "foo" "bar")))
(rx-define