
19 May
2010
19 May
'10
4:06 p.m.
Is there a function to escape regex control characters like RegExp::escape already in boost::regex or perhaps boost::expressive?
No.... it depends upon the regular expression syntax as well, should be trivial to make a list of special characters and do a search and replace? Oh, and don't forget you can wrap the "literal" part of the expression in \Q ... \E which has the same effect. HTH, John.