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

Click here to view the latest version of this page.
Regex Types Used With MFC Strings

The following typedefs are provided for the convenience of those working with TCHAR's:

typedef basic_regex<TCHAR>                  tregex; 
typedef match_results<TCHAR const*>         tmatch; 
typedef regex_iterator<TCHAR const*>        tregex_iterator; 
typedef regex_token_iterator<TCHAR const*>  tregex_token_iterator; 

If you are working with explicitly narrow or wide characters rather than TCHAR, then use the regular Boost.Regex types regex and wregex instead.