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 17:07:36 +0000

> > 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"...
> 
> I observed another strange phenomenon as described below.
             ^^^^^^^

None of the above is a "strange phenomenon".  It's
normal, helpful, and well documented.

> Any hints for this behavior?

Well explained by Thomas.

And it has nothing to do with the form-feed (C-l)
character. `re-search-forward' returns the value of
`point' when it's done; and that value is printed.

reply via email to

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