Categories
How to compose a regular expression for QString?
We need a simple regular expression to check if a string is a number. The delimiter (period) is also required, but not required.
Answer the question
In order to leave comments, you need to log in
You can write something like this, but this is for a very simple case: By the way, QString has methods for converting a string to a number.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question