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: Lennart Borgman
Subject: Re: Is there any way to have a string literal that is read "raw"
Date: Sat, 09 Jul 2005 18:28:48 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

David Kastrup wrote:

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.
You still need escaping, or course, but only for the delimeter.




reply via email to

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