LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Tue, 21 Feb 2012 12:02:59 +0000
Content-Type:
text/plain
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