Answer the question
In order to leave comments, you need to log in
[boost::xpressive] Multipass swap?
Plz tell me who is in the know, otherwise the whole Google has already broken.
There is a line in which boost::xpressive replaces one with the other, but the result is the same string, which must also be replaced (oh, how I said!).
Example:
sregex tmp = sregex::compile( "([0-9]+)\\-([0-9]+)");<br/>
string t = regex_replace(string("8-8-8-8"), tmp, string("$1"), regex_constants::format_perl);<br/>
Answer the question
In order to leave comments, you need to log in
>> Не хочется же строки до и после сравнивать.
It's strange, but I had exactly such an idea (compare before and after), while reading the question (until I read this last line).
If you do not want to compare the strings themselves, you can compare the hashes of these strings, for example md5 or sha1.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question