[racket] regexp with \"

From: Tobias Hammer (tobias.hammer at dlr.de)
Date: Mon Oct 22 10:33:55 EDT 2012

(regexp-match #rx"c\"d" "abc\"def")
and
(regexp-match #rx"c\\\"d" "abc\"def")
seems to work.


On Mon, 22 Oct 2012 16:30:15 +0200, Nadeem Abdul Hamid <nadeem at acm.org>  
wrote:

>>
>> When I insert \\" in the pattern, the double quote is interpreted as the
>> end of the pattern.
>>
>
> You have to escape the quote too...   " ...  \\\" ... "
>
> --- nadeem


-- 
---------------------------------------------------------
Tobias Hammer
DLR / Institute of Robotics and Mechatronics
Muenchner Str. 20, D-82234 Wessling
Tel.: 08153/28-1487
Mail: tobias.hammer at dlr.de

Posted on the users mailing list.