gast128 wrote:
Dear all,
The new Boost version ships with an extra regular expression library.
Now I need a dynamic regualr expression on a std::vectorstd::string. The character type would be a string (since in that case multiple characters are allowed on the same position).
Is this possible with xpressive? Boost.Regex didn't seem to support it according to a previous post.
Xpressive can be used with non-char data so long as the data is sufficiently char-like. And string is not sufficiently char-like. You can see the requirements on the character type here: http://boost-sandbox.sourceforge.net/libs/xpressive/doc/html/boost_xpressive... It wouldn't be too hard to loosen xpressive's Char concept to handle this case, but this is the first time someone has asked for it. -- Eric Niebler Boost Consulting www.boost-consulting.com