Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
replacerx multiple matches in callback
#1
Anyway to have a REPLACERX callback function that handles matching multiple matches?

for example:
Code:
Copy      Help
str s="HELLO WORLD ~ hello world"
s.replacerx("(.+) ~ (.+)" "$2 ~ $1")
out s

So in the example, handle that switch of the matches in a function?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)