<div>HI Guys,</div>
<div>&nbsp;</div>
<div>present i am using drools 4.0 in this case.now, i am writting some rules validation using regular expression&nbsp;ZIPCODE,EMAIL,CREDIT CARD number.like this..</div>
<div>--------------------</div>
<div>validation.dslr</div>
<div>--------------------</div>
<div>rule &quot;email.mandatory:[insert][update][ui]&quot;<br>&nbsp;when<br>&nbsp;&nbsp;There is an Order<br>&nbsp;&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</div>
<div>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 enter a phone number with the format xxx-xxx-xxxx.&quot;\</div>

<div>end</div>
<div>-----------------------</div>
<div>validation.dsl&nbsp;</div>
<div>--------------------</div>
<div>[*][]Order email address checking for first letter= OrderBean(email matches &quot;@[A-Za-z0-9]*&quot;)</div>
<div>[*][]Order phone number format should checking=OrderBean( phone not matches &quot;(/\d{3}\-\d{3}\-\d{4}/)==-1)&quot;) <br></div>
<div>this rules are not working ...any one can help me.ASAP</div>
<div>&nbsp;</div>
<div>thanks,</div>
<div>chanti</div>