← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676937]: delete a specific character

 

Question #676937 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676937

    Status: Open => Answered

RaiMan proposed the following answer:
tested on Mac. this works for me:

t = u"英博英博英博英博"
x = u"英"
uprint(t)
uprint(x)
uprint(t.replace(x, ""))
App.open("textedit")
wait(1)
paste("paste:\n")
paste(t.replace(x, ""))

print out:
英博英博英博英博
英
博博博博

pasted:
paste:
博博博博

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.