D
DSmith1974
Are lookarounds supported in the boost regex lib? In my VS6 project
using boost 1.32.0 I can declare a regex as..
<code_snippet>
std::wstring wstrFilename = L"01_BAR08";
boost::wregex regxCarFile( L"(?=BAR)BAR[0-9]{2}" );
bRet = boost::regex_search( wstrFilename, m, regxCarFile,
boost::match_default );
if( true == bRet )
{
// No match! never gets here.
}
</code_snippet>
...hoping to match '08' rather than '01' but boost matches nothing.
Even worse if I try and declare a regex that uses a lookbehind for e.g.
'boost::regxCarFile( L"(?<=BAR)[0-9]{2}" )' I get bad_exception thrown
from boost.
Are there any plans to support lookarounds in boost, or is there
another suitable regex library that can handle them?
Regards,
Duncan.
using boost 1.32.0 I can declare a regex as..
<code_snippet>
std::wstring wstrFilename = L"01_BAR08";
boost::wregex regxCarFile( L"(?=BAR)BAR[0-9]{2}" );
bRet = boost::regex_search( wstrFilename, m, regxCarFile,
boost::match_default );
if( true == bRet )
{
// No match! never gets here.
}
</code_snippet>
...hoping to match '08' rather than '01' but boost matches nothing.
Even worse if I try and declare a regex that uses a lookbehind for e.g.
'boost::regxCarFile( L"(?<=BAR)[0-9]{2}" )' I get bad_exception thrown
from boost.
Are there any plans to support lookarounds in boost, or is there
another suitable regex library that can handle them?
Regards,
Duncan.