sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29574
Re: [Question #258534]: if string wont read
Question #258534 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258534
Status: Open => Answered
RaiMan proposed the following answer:
--- is there a way to parse "break" of all but visible ASCII charters?
this is exactly, what end.count("break")>0: does:
it counts the non-overlapping occurrences of the given string ("break") in this case.
if this is >0, you are sure, that the string end contains the ASCII-only string "break".
If you want to further analyse the string end:
parts = end.split("break")
returns a list with the string before "break" and the string after "break"
for more info see the string functions in the Python docs.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.