← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #232183]: [How To] set variable value from OCR numerics

 

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

    Status: Answered => Open

Phillip Kelly is still having a problem:
Ok, I'm getting somewhere but I have a completely new problem.
An error occurs during the int(m.group(1)) command due to the fact the my re.match command includes "," for every thousand digits.

m = re.match("[^0-9]*([0-9]*\,?[0-9]*)", text)

I am going to try and find a way to remove or ignore the "," so that the
text can be assigned as an integer.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.