i write a regex for integers and float in Qt (C++) Now i dont want to match my Input when i write a comma. For example:
- 123.3 --> ok
- 123 --> ok
- 123,3 --> NO match
I tried the following regex:
(\d*[.]?\d*)
so now i match for:
- 123.3 --> match: 123.3
- 123 --> match: 123
- 123,3 --> match: 123
I dont want to match the regex when i write a comma. Is this possible?