regex issue

James Miller james at aatch.net
Tue Mar 20 15:44:39 PDT 2012


On 21 March 2012 04:26, Jay Norwood <jayn at prismnet.com> wrote:
> yes, thanks.  I read your other link and that was helpful.   I think I
> presumed that the escape handling was something belonging to stdio, while
> regex would have its own valid escapes that would include \p.  But I see now
> that the string literals have their own set of escapes.

Can you imagine the madness if escapes were specific to stdio, or some
other library! "Ok, and I'll just send this newline over the
network... Dammit, std.network doesn't escape \n". Also means that you
have perfect consistency between usages of strings, no strange other
usages of the same escape sequence...

--
James Miller


More information about the Digitalmars-d-learn mailing list