F
Friedel Jantzen
Hi!
Using MSVS 2008, STL TR1 <regex>.
Is there a way to get to know the number of replacements done by
regex_replace(), or at least, whether there was a replacement at all?
Ok, I can compare if(output != input) after regex_replace(), but this is
wasted performance, if there is a better way.
If a regex_error is thrown, how can I get the position of the error in the
regular expression string?
I found that icase (ignore case) only works with A-Za-z, but e.g. not with
German Umlaute (Ää etc.), though I set my German user locale using
regex::imbue(). Am I missing something?
TIA,
Friedel
Using MSVS 2008, STL TR1 <regex>.
Is there a way to get to know the number of replacements done by
regex_replace(), or at least, whether there was a replacement at all?
Ok, I can compare if(output != input) after regex_replace(), but this is
wasted performance, if there is a better way.
If a regex_error is thrown, how can I get the position of the error in the
regular expression string?
I found that icase (ignore case) only works with A-Za-z, but e.g. not with
German Umlaute (Ää etc.), though I set my German user locale using
regex::imbue(). Am I missing something?
TIA,
Friedel