I'm reading through http://www.regular-expressions.info, and there's a
feature that's missing from std.regex, quoted:
-
All the characters between the \Q and the \E are interpreted as
literal characters. E.g. \Q*\d+*\E matches the literal text *\d+*. The
\E may be omitted at the end of the
18-Dec-2013 22:33, Andrej Mitrovic пишет:
I'm reading through http://www.regular-expressions.info, and there's a
feature that's missing from std.regex,
quoted:
-
All the characters between the \Q and the \E are interpreted as
literal characters. E.g. \Q*\d+*\E matches the literal text
On 12/18/13, Dmitry Olshansky dmitry.o...@gmail.com wrote:
By the end of day any feature is interesting as long as we carefully
weight:
- how useful a feature is
- how widespread the syntax/how many precedents in other libraries
against
- how difficult to implement
- does it affect
On 12/18/13, Dmitry Olshansky dmitry.o...@gmail.com wrote:
P.S. This reminds me to put a roadmap of sorts on where std.regex is
going and what to expect.
Btw one thing I'm not fond of is the format specifiers, in particular:
$` part of input preceding the match.
$' part of input
18-Dec-2013 23:54, Andrej Mitrovic пишет:
On 12/18/13, Dmitry Olshansky dmitry.o...@gmail.com wrote:
P.S. This reminds me to put a roadmap of sorts on where std.regex is
going and what to expect.
Btw one thing I'm not fond of is the format specifiers, in particular:
$` part of input
On 12/18/13, Dmitry Olshansky dmitry.o...@gmail.com wrote:
The precedent is Perl. A heavy influencer on the (former) std.regex design.
http://perldoc.perl.org/perlre.html#Capture-groups
(grep for $')
Ah, classic Perl. Write once - don't bother to read ever again. :p
19-Dec-2013 01:05, Andrej Mitrovic пишет:
On 12/18/13, Dmitry Olshansky dmitry.o...@gmail.com wrote:
The precedent is Perl. A heavy influencer on the (former) std.regex design.
http://perldoc.perl.org/perlre.html#Capture-groups
(grep for $')
Ah, classic Perl. Write once - don't bother to read