Balanced match with std.regex

wobbles via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 15 08:25:01 PST 2015


On Tuesday, 15 December 2015 at 02:35:34 UTC, Xinok wrote:
> On Tuesday, 15 December 2015 at 01:29:39 UTC, Jakob Ovrum wrote:
>> Thanks, that makes sense.
>>
>> String manipulation in D without regex is pretty nice anyway, 
>> so it's not a big loss.
>
> There is a library named Pegged which can match against 
> balanced parens:
>
> https://github.com/PhilippeSigaud/Pegged

Pegged is amazeballs.
Can build some v cool things with it. Particularly with some CTFE 
abuse!


More information about the Digitalmars-d-learn mailing list