Boost Users :
Subject: [Boost-users] boost::xpressive use of before(...)
From: Simon Giddings (simon.giddings_at_[hidden])
Date: 2019-04-17 09:39:49
In our project I have the enviable task of transforming a large number
of perl regex into boost::xpressive static code in c++.
To ensure that the code I write, I have put together a simple test app
where I create the sregex object and can then test that the result is
that which is exected.
I am stuck with the use of before(...)
Here is my test - which fails
std::string strInput = "&9-A02FEfoo";
re = bos >> as_xpr("&9-A02FE") >> before("foo");
if(regex_match(strInput, sm, re))
Â Â Â strResult = "matched : " + sm.str();
According to the documentation (v1.67) this should work.
What am I doing wrong here ?
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