help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: Regexp for matching control character, say, FORM FE


From: Drew Adams
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 03:52:04 +0000

> >>> 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").

<<attachment: winmail.dat>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]