Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
replacerx problem
#1
Hey, wondering how you would do this correctly, i need to replace this character ( " )

but wen u do replacerx


str s
s.replacerx(" " ")


errors because there are 3 " 's

any ideas?
#2

Use single quotes.


Code:
Copy      Help
str s="''Hi There''"
out s
s.replacerx("''")
out s
#3
Thanks!

I had just found another way before you responded!

Code:
Copy      Help
str s = "Welcome ''Ryan''"
s.replacerx("[^A-Za-z0-9 _]")
out s


Forum Jump:


Users browsing this thread: 1 Guest(s)