To iterate over all matches of a regular search, we can also use regex iterators. These iterators are of type regex_iterator and have the usual instantiations for strings and character sequences with prefixes s, c, ws, or wc. Consider the following example: