<br> Markus,<br><br> Can you please show me your rule?<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/10/10, Markus Helbig <<a href="mailto:mhelbig81@googlemail.com">mhelbig81@googlemail.com</a>
>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>no same exception when i use "\\s". JDK didn't change when i switched
<br>from 3.x to 4.x<br><br>Cheers<br><br>Markus<br><br>2007/10/10, DELBART Vincent <<a href="mailto:delbart.v@mipih.fr">delbart.v@mipih.fr</a>>:<br>> Hi,<br>><br>> I think you have to use "Test\\s+".
<br>><br>> I don't think it's a DROOLS problem (maybe jdk).<br>><br>> V.<br>><br>><br>> -----Message d'origine-----<br>> De : <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org
</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] De la part de Markus Helbig<br>> Envoyé : mercredi 10 octobre 2007 11:12<br>> À : <a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>> Objet : [rules-users] pattern<br>><br>> Drools Documentation says:<br>><br>> 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:
<br>><br>> but<br>><br>> "Test\s+" is a valid RegEx (it was valid in Drools 3.x too), but now:<br>><br>> 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) :
<br>> Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )<br>><br>><br>><br>> What i'm doing wrong here?<br>><br>> Cheers<br>><br>> Markus<br>> _______________________________________________
<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br>><br>> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>><br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer
<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>