Hi,
I'm need a help to make a regular expression.
I need a regular expression that validate a string with the following rules:
1- The first character allowed are a-z and A-Z.
2- Is allowed to put after the the first character a-z, A-Z, 0-9, . and -.
3- It not allowed sequence of period(.). (e.g. "qt..framework" its not valid)
5- The string can be infinity.
6- The end of string can't contain . or -.
I tryed to do my own regexp and the result was "(([a-zA-Z][-a-zA-Z0-9]*(\\.[-a-zA-Z0-9]+)*)[^-.]+$)".
My huge problem its to validate the end of string, checking if there is some - or ..
When i put "[^-.]+$" i have two problens one is that i get Intermediate result from
QRegExpValidator::validate() and second is when i put only a character to be
validate i got Intermediate result too.
Can someone help me?
Thanks
Bookmarks