Jython: Regular expression error: sre_constants.error ( nothing to repeat )
Using Sikulix 1.10 I am attempting to compile a regular expression. I run into the following error when I attempt the code below.
Code:
regex_search = re.compile(r'Foo: (.*)? Bar: (.*)? Title: (.*)')
Error:
[error] script [ regex_error_hndl ] stopped with error in line 29
[error] sre_constants.error ( nothing to repeat )
[error] --- Traceback --- error source first line: module ( function ) statement 190: re ( compile ) File "C:\Users\
[error] --- Traceback --- end --------------
1.1.0(2015-
1.1.0(2015-
Further comments:
Related post that I found regarding this error (http://
I believe the issue is with the ".*" portion of the regular expression. I have been unable to figure out a way to adjust my expression to avoid these meta characters. Do you have any suggestions? Is there a way to use a more recent version of python with sikulix? I am fairly new to the world of scripting and programming, these are the sorts of problem that thoroughly stump me. Sikulix has been a fantastic tool to learn on.
Is there any additional info needed to assess this problem?
Any help would be greatly appreciated
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask T G for more information if necessary.