Hi Steven,
In Drools 5 we had to change this behavior because Drools 4 did not processed escaped characters in regular strings. Drools 5 does. For instance: in Drools 4, if you write:
"Something\n"
The string you get is exactly the same as you wrote, but in Drools 5, the \n is converted into the CR character.
So, my recommendation is for you to update your rules escaping the characters, BUT if you do want to keep them as they were in Drools 4, there is a configuration option to keep it backward compatible:
PackageBuilderConfiguration.setProcessStringEscapes( boolean )
true == behaves as drools 5 (default)
false == behaves as drools 4
Alternatively you can use the following property configuration:
drools.parser.processStringEscapes = true|false
[]s
Edson
--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @ www.jboss.com