ctRegex not matching correctly at word boundaries
rikki cattermole
rikki at cattermole.co.nz
Sun Jul 8 10:58:24 UTC 2018
On 08/07/2018 10:37 PM, Ivo wrote:
> First of all, I'm not an expert about regular expression syntax, however
> I believe there might be some strange bug when using ctRegex.
>
> Consider the following code:
>
> void main() {
> import std.regex: ctRegex, matchFirst;
> auto expression = ctRegex!("\bis\b");
auto expression = ctRegex!(`\bis\b`);
\b is bell escape code as per ASCII
More information about the Digitalmars-d-learn
mailing list