Is str ~ regex the root of all evil, or the leaf of all good?
Brian
digitalmars at brianguertin.com
Thu Feb 19 02:22:45 PST 2009
On Thu, 19 Feb 2009 11:31:42 +0300, Denis Koroskin wrote:
> "abracazoo".match("a[b-e]", "g") is as short as "abracazoo" ~
> regex("a[b-e]", "g") but doesn't break existing conventions. I prefer it
> over '~' version. 'in' is also fine (both ways).
i dont see a problem either with just using .match. if you use spaces
around the ~ then its actually to more characters plus needing to hit
shift. certainly not as simple as .match
More information about the Digitalmars-d
mailing list