title: How to add a rule to regular expression
body: <p>Good day I have This form element</p>
  
  <pre><code>   &lt;?php echo new \App\Http\Render\Form\Element\Text([
                        'value' =&gt; (isset($this-&gt;entity['str'])) ? $this-&gt;entity['str'] : '',
                        'elementName' =&gt; 'item[str]',
                        'elementID' =&gt; 'str',
                        'required' =&gt; true,
                        'class' =&gt; 'form-control',                   
                          'attributes' =&gt; [
                              'data-msg-required' =&gt; 'Bitte geben Sie Ihre Straße inkl. Hausnummer an.',//Bitte geben Sie Ihre Stra&amp;szlig;e ein.
                              'regex' =&gt; "[/.*?(\d+)$/]",
                              'data-rule-minlength'=&gt;"6",
                              'data-msg-minlength' =&gt; 'Bitte verwenden Sie keine Zahlen und Sonderzeichen.',
                              'data-msg-regex' =&gt; 'Bitte geben Sie Ihre Straße inkl. Hausnummer an.',
                          ],
                        'placeholder'=&gt;" "
                    ]) ?&gt;
  </code></pre>
  
  <p>As you see I use regular expression to note of error when is number epsen after the string.Please tell me Why I can not see error when I put a dot after the string? Like this case "Strabe ." How I can set the regular expression to note the error when there is no digits in the string at the end of string?</p>