[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it valid to use the zero-byte "^@" in regexps?
From: |
Nicolas Richard |
Subject: |
Re: Is it valid to use the zero-byte "^@" in regexps? |
Date: |
Wed, 18 Jun 2014 14:15:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) |
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.