Dmitry Olshansky <> changed:

           What    |Removed                     |Added
           Keywords|                            |pull
                 CC|                            |

--- Comment #1 from Dmitry Olshansky <> 2012-04-21 
14:11:59 PDT ---
(In reply to comment #0)
> It seems that Captures.length() from std.regex returns bogus lengths for empty
> captures (I might be using it improperly). Here's a simple example, the second
> match object claims length 2 while being empty.

Thanks for the detailed info. The problem is that Captures.length is hardwired
to the number of sub captures + 1 which is fine as long as there is a match.

For now you may use m.empty ? 0 : m.length as a workaround.


P.S. Usage of e.g. length() is deprecated and fails with -property switch. Omit
parens for @property members.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to