title: QRegularExpression Lineedit Validatoin
body: <p>Hello i'm trying to validate the data (consisting of names of 2 or more words) from a lineedit widget using regular expressions in qt the issue is that qt is allowing anything in the lineedit widget my code is below, thank you.</p>
  
  <pre><code>QRegularExpression Company_Name("/([A-Z|a-z|0-9])/g");
  QRegularExpressionMatch Company_Name_Match = Company_Name.match(ui-&gt;lineEdit_Company_Name-&gt;text())
  if(Company_Name_Match.hasMatch())
  {
      ErrorLog = ErrorLog + "Company Name contains charagters that are not alphanumeric\n";
      ui-&gt;lineEdit_Company_Name-&gt;setStyleSheet("border: 1px solid red");
  </code></pre>
  
  <p>Thank you</p>