emacs-devel
[Top][All Lists]
Advanced

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

Re: Is there any way to have a string literal that is read "raw"


From: David Kastrup
Subject: Re: Is there any way to have a string literal that is read "raw"
Date: Sat, 09 Jul 2005 11:16:23 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Markus Gritsch <address@hidden> writes:

> As Sean pointed out, it would also be convenient in such cases like
> Regexps handling.
>
> Python for example has beside of the normal string also a notation for
> a raw string:
>
>    regex = r'^.*\n'

Which still needs a delimiter, and you used \n which is _not_ regexp
syntax.  Now

     regex = 4H^.*
     

(notice the literal newline) would be retro-chic.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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