Bug 5620 – Implicit conversion of RegexMatch to bool

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2011-02-20T08:13:00Z
Last change time
2011-12-09T11:46:37Z
Assigned to
nobody
Creator
doob

Comments

Comment #0 by doob — 2011-02-20T08:13:34Z
It would be nice if RegexMatch could be implicit converted to a bool. Returning true for a match and false for no match.
Comment #1 by dmitry.olsh — 2011-12-09T11:46:37Z
Works in new std.regex.