Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax for findrx/replecerx
#6
Macro
Code:
Copy      Help
str a = "Your name: Im craig234, $$: 1327"
a.replacerx("^.+?(\d+)$" "$1")
out a

$1 in replacement means the first enclosed part. So everything that is not enclosed is removed.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)