|
Boost Users : |
From: Eric Niebler (eric_at_[hidden])
Date: 2007-05-22 12:21:58
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::vector<std::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:
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net