I'm doing ocr on some files and sometimes the ocr returns a float with double dots instead of commas. this is generating an error and I would like to create a regex to look for numbers like 1.111.11 or 11.111.11 or 111.111.11 and so on.
I tried something like this ^[+-]?(?:\d+|\d{1,3}(?:.\d{3})*)(?:\.\d*)?$ but it won't work.
Can anyone help me figure it out?