E
E
Egorithm2020-01-18 20:28:24
Qt
Egorithm, 2020-01-18 20:28:24

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

1 answer(s)
V
Vitaly, 2020-01-18
@EgoRusMarch

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 your question

Ask a Question

731 491 924 answers to any question