Regexp: std::runtime_error, bad pattern?