Balanced match with std.regex

Jakob Ovrum via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 14 16:16:41 PST 2015


Is there a way to do balanced match with std.regex?

Example (from [1]):

test -> funcPow((3),2) * (9+1)

I want to match the funcPow((3),2) bit, regardless of the depth 
of the expression in funcPow(*).

https://stackoverflow.com/questions/7898310/using-regex-to-balance-match-parenthesis [1]



More information about the Digitalmars-d-learn mailing list