![]() |
Home | Libraries | People | FAQ | More |
boost::algorithm::find_all_regex — Find all regex algorithm.
// In header: <boost/algorithm/string/regex.hpp> template<typename SequenceSequenceT, typename RangeT, typename CharT, typename RegexTraitsT> ( Result, Input, Rx, Flags = );
This algorithm finds all substrings matching the give regex in the input.
Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are std::vector<std::string>
or std::list<boost::iterator_range<std::string::iterator>>
![]() |
Note |
---|---|
Prior content of the result will be overwritten. |
![]() |
Note |
---|---|
This function provides the strong exception-safety guarantee |
Parameters: |
|
||||||||
Returns: |
A reference to the result |