Jürgen Spitzmüller wrote: > Georg Baum wrote: >> I don't understand why >> that is there, it should also work without. > > It doesn't. Complex lines are not found then.
This is obviously a boost speciality. A normal regex e.g. in grep would match, but it seems that in boost you need to use regex_search instead of regex_match if you also want matches that do not cover the whole string. Maybe using regex_search is also the solution for the other problems? Or one of the flags at http://www.boost.org/libs/regex/doc/match_flag_type.html ? Georg