<div>HI Jar,</div>
<div>&nbsp;Thanks for replay,</div>
<div>&nbsp;i am try to like this also: email matches &quot;@\[A-Za-z0-9\]*&quot;</div>
<div>in this case also nagetive test cases Build Success.</div>
<div>&nbsp;</div>
<div>Chanti<br><br></div>
<div class="gmail_quote">On Fri, May 30, 2008 at 2:49 PM, Jaroslaw Kijanowski &lt;<a href="mailto:jaroslaw.kijanowski@redhat.com">jaroslaw.kijanowski@redhat.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br>&nbsp;you have to escape characters with regexp meaning (see docs for details).<br>Try this:<br>email matches &quot;@\[A-Za-z0-9\]*&quot; 
<div class="Ih2E3d"><br>phone not matches &quot;\\\\d{3}\\\\-\\\\d{3}\\\\-\\\\d{4}&quot;<br><br></div>Moreover I guess your rule is anyway broken, you will get a cross product of Orders, so I would remove &quot;There is an Order&quot; from both rules.<br>
<br>Cheers,<br>&nbsp;Jarek<br><br>Nagaraju runkana wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">HI Guys,<br><br>present i am using drools 4.0 in this case.now, i am writting some rules<br>validation using regular expression ZIPCODE,EMAIL,CREDIT CARD number.like<br>this..<br>--------------------<br>
validation.dslr<br>--------------------<br>rule &quot;email.mandatory:[insert][update][ui]&quot;<br>&nbsp;when<br>&nbsp;There is an Order<br>&nbsp;Order email address checking for first letter<br>then<br>&nbsp;Reject with response : &quot;email address must not start with @ &quot;<br>
end<br>rule &quot;phone.mandatory:[insert][update][ui]&quot;<br>when<br>&nbsp;There is an Order<br>&nbsp;Order phone number format should checking<br>&nbsp;then<br>&nbsp;Reject with response : &quot;The phone number you entered is not valid.Please<br>
enter a phone number with the format xxx-xxx-xxxx.&quot;\<br>end<br>-----------------------<br>validation.dsl<br>--------------------<br>[*][]Order email address checking for first letter= OrderBean(email matches<br>&quot;@[A-Za-z0-9]*&quot;)<br>
[*][]Order phone number format should checking=OrderBean( phone not matches<br>&quot;(/\d{3}\-\d{3}\-\d{4}/)==-1)&quot;)<br>this rules are not working ...any one can help me.ASAP<br><br>thanks,<br>chanti<br><br><br><br></div>
</div>------------------------------------------------------------------------ 
<div class="Ih2E3d"><br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></blockquote>
<div>
<div></div>
<div class="Wj3C7c"><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>