Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex madness...
#3
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...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)