|
Boost Users : |
Subject: [Boost-users] [regex] /g
From: Andrey Moshbear (andrey.vul_at_[hidden])
Date: 2011-10-25 02:07:41
I have a few questions regarding implementing /g when using boost.regex.
Firstly, is the iterator-pair form of match equivalent to /g?
I.e.
{
sregex_iterator m1(str.begin(), str.end(), regex);
sregex_iterator m2;
for (; m1 != m2; ++m1) {
// do something with *m1
}
}
Secondly, does regex_replace() loop internally in a /g fashion?
001100 Andrey "m05hbear" Vul
010010
011110 andrey at moshbear dot net
100001 andrey dot vul at gmail
101101
110011
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