<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY LINK="#0000ff">
I ran into some problems where a fairly simple rule fails in 5.0.1 and worked in 4.0.7.<BR>
<BR>
I have created an issue on JIRA <A HREF="https://jira.jboss.org/jira/browse/JBRULES-2136">https://jira.jboss.org/jira/browse/JBRULES-2136</A> and was wondering if someone else has come across that same type of problem.<BR>
<BR>
The rule is:<BR>
<BR>
<PRE>
package org.drools.rules.test
import org.drools.rules.test.SimpleStringType
rule &quot;SimpleKeywordTest&quot;
        dialect &quot;java&quot; 
when
        $_theFact : SimpleStringType( stringValue matches &quot;.*\s(ADDR)\s.*|(ADDR)\s.*|.*\s(ADDR)&quot; )
then
        $_theFact.setValid(false);
end
</PRE>
<BR>
Whenever the <B>stringValue</B> contains something like 'MY ADDR' the rule should fire but it doesn't in 5.0.1 <BR>
<BR>
Corneil
</BODY>
</HTML>