I found regular expression which should match IPv4 address:
QRegExp rx_ipv4("^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$");
bool match = rx_ipv4.exactMatch("1.2.33333");
It returns true.
But in above regular expression part ending with dot must be repeated three times. What is wrong with this regular expression ?