Fuzzy string matching?

Jonathan M Davis jmdavisProg at gmx.com
Fri Jul 15 23:22:02 PDT 2011


On Saturday 16 July 2011 06:17:56 dsmith wrote:
> Could you demonstrate how to use std.regex for pattern matching, preferably
> with a bool method?
> 
> My usage of std.regex.match yields this error:
> core.exception.AssertError@/usr/include/d/dmd/phobos/std/regex.d(1796):
> 4294967295 .. 4294967295 vs. 5
> 
> My usage is:     auto m = match(long_string, regex(str));
>                         writeln(m.hit);

I'm afraid that I've never used either std.regexp or std.regex, so I'm not 
familiar with the usage of either one. There's every chance that this is a bug 
rather than misuse on your part. I'd advise posting a question about it 
separately (so that people are more likely to see it) with an appropriate 
subject, and there's a decent chance that someone who's actually familiar with 
std.regex will answer your question.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list