|
From: | Emanuel Berg |
Subject: | Re: [External] : Re: Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) |
Date: | Thu, 22 Jul 2021 06:14:33 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Drew Adams wrote: >>>>> I want to know whether there are some similar regexp >>>>> patterns in Emacs as the ones used by grep, say, $'\014' >>>>> or $'\f'. >>>> >>>> (re-search-forward "\C-l") >>> >>> Yes, or (re-search-forward "[\f]") >>> or (re-search-forward "[\014]") >> >> What about >> >> (re-search-forward (kbd "C-l")) > > Sure. Which is the same as (re-search-forward "\f"). So far, these works (re-search-forward "[\014]") (re-search-forward "[\f]") (re-search-forward "\C-l") (re-search-forward "\f") (re-search-forward (kbd "C-l")) It seems subexpressions at lines 1 and 2 evaluate to the same "[^L]", as does for their part lines 3, 4 and 5, and then it is "^L"... -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |