Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function template find_regex

boost::algorithm::find_regex — Find regex algorithm.

Synopsis

template<typename CollectionT, typename CharT, typename RegexTraitsT, 
typename RegexAllocatorT> 
iterator_range< typename result_iterator_of< CollectionT >::type > 
find_regex(CollectionT & Input, 
const reg_expression< CharT, RegexTraitsT, RegexAllocatorT > & Rx, 
match_flag_type Flags = match_default);

Description

Search for a substring matching the given regex in the input.

Parameters

Flags

Regex options

Input

A container which will be searched.

Rx

A regular expression

Returns: An iterator_range delimiting the match. Returned iterator is either InputContainerT::iterator or InputContainerT::const_iterator , depending on the constness of the input parameter.
Notes: This function provides the strong exception-safety guarantee

Copyright 2002-2004 Pavol Droba

PrevUpHomeNext