Why does regex::Match::end return length + 1?
              
              #866
            
            
          -
| i have noticed that the function  | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
| 
 Just to nip this part in the bud, the  
 OK so this is a great question. It's something most people don't think about and is often considered so fundamental that it's never really explicitly addressed. The answer to your question is somewhat subtle, and it is rooted in the answer to a different question: should we use  
 Happy to answer follow-up questions. :-) | 
Beta Was this translation helpful? Give feedback.
Just to nip this part in the bud, the
MatchAPI existed long before inclusive range syntax and evenstd::ops::RangeInclusiveitself existed. So this particular aspect of the question starts from the faulty premise that..=was even a choice at the time the regex API was stabilized.OK so this is a great question. It's something most people don't think about and is often considered so fundamental that it…