regexは正規表現を扱うライブラリである。
regex.hpp
このヘッダは下位のヘッダのインクルードと、typedefによる型の定義が記述されている。
#ifdef
typedef basic_regex<char, regex_traits<char> > regex;
#ifndef
typedef basic_regex<wchar_t, regex_traits<wchar_t> > wregex;
#endif
#endif
typedef match_results<const char*> cmatch;
typedef match_results<std::string::const_iterator> smatch;
#ifndef
typedef match_results<const wchar_t*> wcmatch;
typedef match_results<std::wstring::const_iterator> wsmatch;
#endif
regex_search.hpp
このヘッダには検索用関数 regex_search が種々のオーバーロードで定義されている。