09-21-2012, 04:33 PM
rtrim did it, but frustrating in losing so much time when syntax is correct and
not behaving as supposed.
But i've got other questions so I carry on (not all regex related).
I must test a word to a list.
1. I used the find method, array method (foreach...), the IStringMap method; what is the most efficient (quickest and lightest)???
2. I want make "batch" replace in a string, looking sometimes for several replacements in the same string.
ex :
str s="v xv XVI"
ss.replacerx("xix" "XIX" 2|8|32)
ss.replacerx("xx" "XX" 2|8|32)
the replacerx line are repeated for each and the file is now pretty long and it becomes inconvenient.
I'm sure there is a better way...
not behaving as supposed.
But i've got other questions so I carry on (not all regex related).
I must test a word to a list.
1. I used the find method, array method (foreach...), the IStringMap method; what is the most efficient (quickest and lightest)???
2. I want make "batch" replace in a string, looking sometimes for several replacements in the same string.
ex :
str s="v xv XVI"
ss.replacerx("xix" "XIX" 2|8|32)
ss.replacerx("xx" "XX" 2|8|32)
the replacerx line are repeated for each and the file is now pretty long and it becomes inconvenient.
I'm sure there is a better way...
