Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove Special Characters and White Spaces in a string
#2
Try this:
Macro Macro75
Code:
Copy      Help
str s="!@#$%%^&ME and Bobby ! MckGee#@$%^."
out "Before = %s" s
str regex="((?![a-zA-Z0-9]).)+"
s.replacerx(regex "" 8)
out "After = %s" s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)