From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <878s1z0yty.fsf@zoho.eu> (raw)
In-Reply-To: SJ0PR10MB54886A74159716F7338E9D8AF3E49@SJ0PR10MB5488.namprd10.prod.outlook.com
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"...
\f
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2021-07-22 4:14 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-06 2:34 The `^L' appeared in built-in help Hongyi Zhao
2021-07-06 2:46 ` [External] : " Drew Adams
2021-07-06 2:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 14:56 ` Drew Adams
2021-07-06 15:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 17:04 ` Drew Adams
2021-07-06 17:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 2:51 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 3:44 ` Hongyi Zhao
2021-07-06 4:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 8:26 ` Hongyi Zhao
2021-07-06 8:31 ` Hongyi Zhao
2021-07-06 9:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 9:40 ` Hongyi Zhao
2021-07-06 10:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 11:07 ` Hongyi Zhao
2021-07-06 11:22 ` Hongyi Zhao
2021-07-06 11:55 ` Hongyi Zhao
2021-07-06 12:09 ` Hongyi Zhao
2021-07-06 16:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 16:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-07 3:03 ` Hongyi Zhao
2021-07-13 3:06 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 16:12 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-07 1:40 ` Hongyi Zhao
2021-07-13 3:07 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-18 6:34 ` Hongyi Zhao
2021-07-19 0:27 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-20 1:27 ` Hongyi Zhao
2021-07-20 1:42 ` [External] : " Drew Adams
2021-07-20 2:02 ` Hongyi Zhao
2021-07-20 4:28 ` Drew Adams
2021-07-20 5:56 ` Hongyi Zhao
2021-07-20 10:29 ` Hongyi Zhao
2021-07-20 14:48 ` Drew Adams
2021-07-20 16:28 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21 2:03 ` Hongyi Zhao
2021-07-21 2:26 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21 4:44 ` Drew Adams
2021-07-21 7:15 ` Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) Hongyi Zhao
2021-07-21 17:08 ` [External] : " Drew Adams
2021-07-22 1:13 ` Hongyi Zhao
2021-07-22 1:28 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 1:39 ` Drew Adams
2021-07-22 1:42 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 3:52 ` Drew Adams
2021-07-22 4:14 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-07-22 8:04 ` Hongyi Zhao
2021-07-22 13:56 ` Hongyi Zhao
2021-07-22 14:38 ` tomas
2021-07-22 14:53 ` Hongyi Zhao
2021-07-22 15:01 ` tomas
2021-07-22 15:21 ` Hongyi Zhao
2021-07-22 22:07 ` [External] : Re: Regexp for matching control character, say, FORM FEED Michael Heerdegen
2021-07-23 1:09 ` Hongyi Zhao
2021-07-22 17:07 ` [External] : Re: Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) Drew Adams
2021-07-22 17:11 ` tomas
2021-08-01 2:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-22 8:06 ` tomas
2021-07-22 9:45 ` Hongyi Zhao
2021-07-22 10:06 ` tomas
2021-07-22 10:27 ` Hongyi Zhao
2021-07-22 12:14 ` tomas
2021-08-01 2:31 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-06 4:19 ` The `^L' appeared in built-in help 2QdxY4RzWzUUiLuE
2021-07-06 4:29 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878s1z0yty.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.