Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findreplace period with nothing
#1
Help! I am trying to replace a period (.) with nothing.

Code:
Copy      Help
str v
inp- v "Enter version #" ""
out v.findreplace("." "")

For example, 0.3.0 -> 030

Thanks!
Evangelism - Just Do It!
#2
findreplace returns number of replacements.

Code:
Copy      Help
str v
inp- v "Enter version #" ""
v.findreplace("." "")
out v


Forum Jump:


Users browsing this thread: 1 Guest(s)