I want to allow *
or Number only in my QLineEdit
for IP Address.
My regular Expression is:
QRegExp rx ( "^(0|[1-9]|[1-9][0-9]|1[0-9][0-9]|2([0-4][0-9]|5[0-5]))$" );
Which is find for IP Address
, Now I want to allow *
symbol for search IP Range.
i.e. 10.105.*.*
to 10.107.*.*
This treated as 10.105.0.0
to 10.107.255.255
Try this
Regex
which matches IPAddress with * and/or between 0-255