10 May
2007
10 May
'07
9:01 a.m.
Bruno Voigt wrote:
Hi John, At first thanks again for fast response, your lib is one of my most precious tools.
To follow your argumentation I wrote two perl oneliners to reproduce it and saw that only the first version with the greedy flag matches the boost-1.33 behaviour whilest the second version matches that of the
$ perl -e '$s="123";$s=~s/(.*)/+$1/g;print $s;' +123+
$ perl -e '$s="123";$s=~s/(.*)/+$1/;print $s;' +123
The /g modifier signifies that search and replace should be global (replace all occurances), without it only the first occurance is replaced. If that's what you want to happen pass "format_first_only" as a match-flag to regex_replace/regex_merge. HTH, John.