sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37759
Re: [Question #292406]: Regular expression python bug
Question #292406 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/292406
Status: Open => Answered
RaiMan proposed the following answer:
--- I believe the issue is with the ".*"
apparently not, because this is accepted:
regex_search = re.compile(r'Foo: (.*?) Bar: (.*?) Title: (.*?)')
... so you have to put the ? directly after the *, which makes sense,
since it modifies the behavior of * (not-greedy), but is not defined for
a group (...)
I agree, that the error message is not really helpful ;-)
BTW: you are using the latest possible Python language interpreter with
SikuliX: Jython 2.7.0
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.