all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org, Thorsten Jolitz <tjolitz@gmail.com>
Subject: Re: Is it valid to use the zero-byte "^@" in regexps?
Date: Wed, 18 Jun 2014 14:15:23 +0200	[thread overview]
Message-ID: <87sin2quqs.fsf@geodiff-mac3.ulb.ac.be> (raw)
In-Reply-To: <87ppi61m7m.fsf@gmx.de> (Michael Albinus's message of "Wed, 18 Jun 2014 13:38:53 +0200")

Michael Albinus <michael.albinus@gmx.de> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> Hi List, 
>
> Hi,
>
>> ,--------------------------------------------------------
>> | "^#\\+begin_src[[:space:]]+emacs-lisp[^^@]*\n#\\+end_src"
>> `--------------------------------------------------------
>
> "^#\\+begin_src[[:space:]]+emacs-lisp[[:ascii:]]+\n#\\+end_src"

Many characters are not in ASCII (0-127)

To include NULs, this would work :
"^#\\+begin_src[[:space:]]+emacs-lisp\\(?:.\\|\n\\)+\n#\\+end_src"

-- 
Nico.



      reply	other threads:[~2014-06-18 12:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18  9:14 Is it valid to use the zero-byte "^@" in regexps? Thorsten Jolitz
2014-06-18  9:52 ` Nicolas Richard
2014-06-18 10:22   ` Thorsten Jolitz
2014-06-18 10:55     ` Nicolas Richard
2014-06-18 11:16       ` Thorsten Jolitz
2014-06-18 11:38 ` Michael Albinus
2014-06-18 12:15   ` Nicolas Richard [this message]

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=87sin2quqs.fsf@geodiff-mac3.ulb.ac.be \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=tjolitz@gmail.com \
    /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.