sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06462
Re: [Question #176960]: How to check whether a string contains character/number/special character?
Question #176960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/176960
Status: Open => Answered
RaiMan proposed the following answer:
typical job for regular expressions
example:
import re
only_numbers = re.compile('\d*')
if not re.match(only_numbers, password_string):
print "not valid"
read more:
Jython docs: http://www.jython.org/docs/library/re.html
best site on RegEx general: http://www.regular-expressions.info/
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.