hi ,
I am facing problem with IP Address validation.
I wrote the condition like this , this is not working properly what i need.
Code:
QRegExp cpu1add2regExp( "((1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]).){3}(1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])" );
lecpu1add2->setValidator(new QRegExpValidator(cpu1add2regExp, this));
1) 000.000.000.000 --to -- 999.999.999.999 // should allow only integers from( 0.1.2.3.4....9) and dot(.)
2) 112.543.432.33
x=122 // After x(3 digits one dot(.) should come) and don't allow fourth digit.
y=543
z=432
v=33 // v should be
Please anybody help me how to write the logic to get the required IP Address. i searched in forum also but didn't find.
Thanks & Regards
Bookmarks