From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) Date: Wed, 21 Jul 2021 15:15:21 +0800 Message-ID: References: <87mtr0889q.fsf@zoho.eu> <87a6n084rz.fsf@zoho.eu> <87lf61ymol.fsf@zoho.eu> <87im14xv08.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Help-Gnu-Emacs \(help-gnu-emacs@gnu.org\)" , Emanuel Berg To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 21 09:17:03 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m66TX-0002Ew-ED for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 09:17:03 +0200 Original-Received: from localhost ([::1]:53434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m66TW-0008DN-Df for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 03:17:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m66S8-0007uz-Gn for help-gnu-emacs@gnu.org; Wed, 21 Jul 2021 03:15:36 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:38823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m66S6-0007cW-Uw for help-gnu-emacs@gnu.org; Wed, 21 Jul 2021 03:15:36 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id q16so1717638lfa.5 for ; Wed, 21 Jul 2021 00:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7w3SevU9hdntMsdTIhpk6I6RvcCaeit1CDZyIfdPXyQ=; b=u506xT5xQHaRxsvfFgaWaXtn2jQmaUod+ryhDmin9opPGeIDzfT0U48sg7dwr6EURH 7a4VkkV1atCFWK30YKhNj5ZvUleU2z/ERDEoXCw0iRnxv7bBWw62E/otip5oUhxfbFab O5DlKoPcCBT9rG4rPGJotxAkkprFL/GXwUW0J5GUA7vLJ/vqcY6bXktSfHnUBqq92k/Z Y0I0vpYPIId8fc/zeItBekbP4u8hx8DXk22R65seeM3M+MjTrgsGUKq8dE19XnqYkC3F rF5lm/V97tMJP9KfaAy6CeE6NQ8OHiyGsWJteSYzMQnYLGv37y4zi2IbtH9fKujpk/B4 bK7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7w3SevU9hdntMsdTIhpk6I6RvcCaeit1CDZyIfdPXyQ=; b=U/cOwVmPZRoHcu6OXIGAasN9nYOOeldyAIBP8TD3DBDc+cKk3u8rGzl5C5OH2oWrSq jGXr60i4vLUmzgahSIeWghZA5DAzxR1ogfqScRaiMEEqNEo+bCX7ScYvEc1aPg3h3bgZ Ul+qta6DnhIG7dJxywqWeUHGqyrcnh7J+eBU1jjy6V+0lNOsIZB3KFokvSnysyLSwUX+ xw2iI9tOLybU3jYPvprJzqdS687EGUm8wgR3nNeJgN4Q6OcuNzNkXj7LcgxidRSmK6kd vF0d+5nuxiuREI+C4GmP07CsEtg2j9oGPuiCTuu2VCcGLcHpW/FpWaIPMMRtVRU6lVu6 zNPA== X-Gm-Message-State: AOAM530qZ11bQw6TFJxK9R6J9PQE8KaZTqL4MSRlac8YIHyremvuiXqU MMloZT9403lDqLTwLCLAXvcvH/S0GXwGYW2j3fs= X-Google-Smtp-Source: ABdhPJwz6wx2VVSHOkPsF1FrzFivM+L+6hDbj80rhrMMBluuHsBUJcJN6zkYnj3h30uwaY/s45uvYhgT6wEiKBv1LDE= X-Received: by 2002:a05:6512:261d:: with SMTP id bt29mr26356353lfb.231.1626851732559; Wed, 21 Jul 2021 00:15:32 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131922 Archived-At: On Wed, Jul 21, 2021 at 12:44 PM Drew Adams wrote: > > > M-x insert-char RET form feed (ff) RET > > aka: > > `C-q C-l' > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Inserting-Text.html If I don't know the Unicode name and the above input sequence of it, to be more specifically, I only know its representation in Emacs is ^L, then how to search/match/find/filter out it with regexp. As a similar example, I can grep it with the following $ grep $'\014' 11.txt | cat -te ^L$ $ grep $'\f' 11.txt | cat -te ^L$ -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province