Karl Trout


On Oct 10, 2007, at 5:44 AM, "DELBART Vincent" <[EMAIL PROTECTED]> wrote:

Hi,

I think you have to use "Test\\s+".

I don't think it's a DROOLS problem (maybe jdk).

V.


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] De la part de Markus Helbig
Envoyé : mercredi 10 octobre 2007 11:12
À : [email protected]
Objet : [rules-users] pattern

Drools Documentation says:

Matches a field against any valid Java Regular Expression. Typically that regexp is a String, but variables that resolve to a valid regexp are also allowed. It is important to note that different from java, if you write a String regexp directly on the source file, you don't need to escape '\'. Example:

but

"Test\s+" is a valid RegEx (it was valid in Drools 3.x too), but now:

SyntaxfehlerRule Compilation error : [Rule name=OnlineStreaming Start, agendaGroup=MAIN, salience=100, no-loop=true] com/p7s1/swi/ phoenix/n24/Rule_OnlineStreaming_Start_0.java (19:923) :
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )



What i'm doing wrong here?

Cheers

Markus
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to