<div>i am trying to another way like this ..</div>
<div><br>rule &quot;email.firstletter:[insert][update][ui]&quot;<br>when<br>&nbsp;There is an Order<br>&nbsp;Order email address statr with @&nbsp;<br>&nbsp;// OrderBean(eval(email.indexOf(<a href="mailto:&#39;@&#39;,0">&#39;@&#39;,0</a>) == 0)) <br>
then<br>&nbsp;Reject with response : &quot;email address must not start with @&quot;<br>end</div>
<div>&nbsp;</div>
<div>this time also same problem.any another to slove this problem.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div class="gmail_quote">On Fri, May 30, 2008 at 3:32 PM, Jaroslaw Kijanowski &lt;<a href="mailto:kijanowski@gmail.com">kijanowski@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Yeah, but that&#39;s not a drools issue any more. I guess your regexp is not sufficient to catch an email address.<br>
The rule will fire when you provide @aa but it will not fire if you use @<a href="http://aa.com/" target="_blank">aa.com</a>, right? google for &quot;Validate an Email Address&quot; and you will find regexps which will handle the &quot;dot&quot; and other chars. 
<div>
<div></div>
<div class="Wj3C7c"><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">HI Jar,<br>&nbsp;Thanks for replay,<br>&nbsp;i am try to like this also: email matches &quot;@\[A-Za-z0-9\]*&quot;<br>
in this case also nagetive test cases Build Success.<br><br>Chanti<br><br>On Fri, May 30, 2008 at 2:49 PM, Jaroslaw Kijanowski &lt;<br><a href="mailto:jaroslaw.kijanowski@redhat.com" target="_blank">jaroslaw.kijanowski@redhat.com</a>&gt; wrote:<br>
<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;<br>
phone not matches &quot;\\\\d{3}\\\\-\\\\d{3}\\\\-\\\\d{4}&quot;<br><br>Moreover I guess your rule is anyway broken, you will get a cross product<br>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><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&nbsp;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<br>
matches<br>&quot;@[A-Za-z0-9]*&quot;)<br>[*][]Order phone number format should checking=OrderBean( phone not<br>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>------------------------------------------------------------------------<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><br></blockquote>_______________________________________________<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>
<br></blockquote><br><br>------------------------------------------------------------------------<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></blockquote><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>