Search code examples
c++boost-spirit-qi

Boost::Spirit. Parse string excluding substrings


How to parse a string using boost::spirit excluding defined substrings?

For example, a string must not contain $lf, $pt, $kf


Solution

  • You may mean

    *(qi::char_ - (qi::lit("$if") | qi::lit("$pt") | qi::lit("$kf"))