Hi!

I need a regexp which accepts a string (maximum 30 characters/Slots) with:

- letters from A to Z (not Á or Ñ or Ë...)
- numbers
- spaces
- signs: . , -

No matter the order so valid examples are :

- Hello how are you
- Hi. My -name- is ... mm

I was trying with that but it just accepts letters and numbers:
Qt Code:
  1. QRegExp rx7("[A-Z0-9]{0,30}");
  2. QValidator *validator7 = new QRegExpValidator(rx7, this);
  3. myLineEdit->setValidator(validator7);
To copy to clipboard, switch view to plain text mode 

Thank you so much