LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Tue, 21 Feb 2012 12:02:59 +0000
Content-Disposition: inline
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Message-ID: <20120221120259.GA18620@csmvddesktop>
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=us-ascii
From: dongen <[log in to unmask]>
Parts/Attachments: text/plain (21 lines)
Howsagoin (Bruno?),


I don't understand why the following regular expression replacement
gobbles the first two characters.

    \tl_new:N \l_arg_tl
    \regex_const:Nn \c_slash_regex_tl    { / }
    \tl_set:Nn \l_arg_tl {1234/5678/9012}
    \regex_replace_all:NnN \c_slash_regex_tl {\c{textbackslash}} \l_arg_tl
    \regex_use:N \l_arg_tl

It gives me 34\textbackslash5678\textbackslash9012.

Thanks in advance for your help.

Regards,


Marc van Dongen

ATOM RSS1 RSS2