Regex not working in zul -ZK
<p>I'm working with Java and ZK. Trying to use a regex as a constraint on a textbox.</p>

<p>This is the regex: <code>^[0-9]{1,9}(?:\\.[0-9]{1,3})?$</code>.
It is working fine in Java but while using in zul <code>textbox</code>, its giving error: <code>Unknown constraint: ^[0-9]{1</code>
Please have a look at the screenshot attached:</p>

<p><a href="https://i.stack.imgur.com/xIbM1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xIbM1.png" alt="enter image description here"></a></p>

<p>Valid values of regex- </p>

<pre><code>121245.121(3 digits after decimal is valid)
2145.11
0.23
5748579
</code></pre>

<p>Invalid values-</p>

<pre><code>.111
45445.454545(3 digits after decimal is valid)
-1545.2
22..
</code></pre>

<p>Code in zul is as below-</p>

<pre><code>&lt;textbox xmlns:w="client" id="bal" maxlength="12" tooltiptext="Balance" constraint="^[0-9]{1,9}(?:\\.[0-9]{1,3})?$"&gt;
</code></pre>

<p>ZK Fiddler can be found at : <a href="http://zkfiddle.org/sample/2c9e93q/2-Textbox-regex-issue" rel="nofollow noreferrer">http://zkfiddle.org/sample/2c9e93q/2-Textbox-regex-issue</a></p>

<p>Can anyone help me solve this issue?</p>