I\'m just getting my head around regular expressions, and I\'m using the Boost Regex library.
I have a need to use a regex that includes a specific URL, and it choke
Same with boost::xpressive:
const boost::xpressive::sregex re_escape_text = boost::xpressive::sregex::compile("([\\^\\.\\$\\|\\(\\)\\[\\]\\*\\+\\?\\/\\\\])");
std::string regex_escape(std::string text){
text = boost::xpressive::regex_replace( text, re_escape_text, std::string("\\$1") );
return text;
}