Regular Expression Creation From an MFC String

| Home | Libraries | People | FAQ | More

##### Regular Expression Creation From an MFC String

The following helper function is available to assist in the creation of a regular expression from an MFC/ATL string type:

    template <class charT>
    basic_regex<charT>
       make_regex(const ATL::CSimpleStringT<charT>& s,
                ::boost::regex_constants::syntax_option_type f = boost::regex_constants::normal);

Effects: returns `basic_regex<charT>(s.GetString(), s.GetString() + s.GetLength(), f);`