<div>HI Guys,</div>
<div> </div>
<div>present i am using drools 4.0 in this case.now, i am writting some rules validation using regular expression ZIPCODE,EMAIL,CREDIT CARD number.like this..</div>
<div>--------------------</div>
<div>validation.dslr</div>
<div>--------------------</div>
<div>rule "email.mandatory:[insert][update][ui]"<br> when<br> There is an Order<br> Order email address checking for first letter<br>then<br> Reject with response : "email address must not start with @ "<br>
end</div>
<div>rule "phone.mandatory:[insert][update][ui]"<br>when<br> There is an Order<br> Order phone number format should checking<br> then<br> Reject with response : "The phone number you entered is not valid.Please enter a phone number with the format xxx-xxx-xxxx."\</div>
<div>end</div>
<div>-----------------------</div>
<div>validation.dsl </div>
<div>--------------------</div>
<div>[*][]Order email address checking for first letter= OrderBean(email matches "@[A-Za-z0-9]*")</div>
<div>[*][]Order phone number format should checking=OrderBean( phone not matches "(/\d{3}\-\d{3}\-\d{4}/)==-1)") <br></div>
<div>this rules are not working ...any one can help me.ASAP</div>
<div> </div>
<div>thanks,</div>
<div>chanti</div>