Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete all text after "TEXT1" in string?
#2
str text= "This is some text. TEXT1 This is some more text."
str lookFor = "TEXT1"
int location = find(text lookFor)
text.remove((location + lookFor.len))
out text


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)