Regex start/end position of match?

Gerald via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 1 09:50:21 PDT 2015


Thanks Adam, that was the hint I needed. For a given RegexMatch 
the pre().length() is essentially equivalent to the start 
position and taking pre().length + hit.length() gives the end 
position so I think this should be OK for my needs.


More information about the Digitalmars-d-learn mailing list