[tab:re.alg.match] (original) (raw)

28 Text processing library [text]

28.6 Regular expressions library [re]

28.6.10 Regular expression algorithms [re.alg]

28.6.10.2 regex_match [re.alg.match]

Table 121 β€” Effects of regex_match algorithm [tab:re.alg.match]

πŸ”—Element Value
πŸ”—m.size() 1 + e.mark_count()
πŸ”—m.empty() false
πŸ”—m.prefix().first first
πŸ”—m.prefix().second first
πŸ”—m.prefix().matched false
πŸ”—m.suffix().first last
πŸ”—m.suffix().second last
πŸ”—m.suffix().matched false
πŸ”—m[0].first first
πŸ”—m[0].second last
πŸ”—m[0].matched true
πŸ”—m[n].first For all integers 0 < n < m.size(), the start of the sequence that matched sub-expression n. Alternatively, if sub-expression n did not participate in the match, then last.
πŸ”—m[n].second For all integers 0 < n < m.size(), the end of the sequence that matched sub-expression n. Alternatively, if sub-expression n did not participate in the match, then last.
πŸ”—m[n].matched For all integers 0 < n < m.size(), true if sub-expression n participated in the match, false otherwise.