[jboss-jira] [JBoss JIRA] Created: (JBRULES-2992) Could not parse escaped characters

Tomáš Schlosser (JIRA) jira-events at lists.jboss.org
Tue Apr 26 04:02:18 EDT 2011


Could not parse escaped characters
----------------------------------

                 Key: JBRULES-2992
                 URL: https://issues.jboss.org/browse/JBRULES-2992
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Tomáš Schlosser
            Assignee: Mark Proctor
             Fix For: 5.2.0.M1


When trying to parse rule:
rule "Regex-A"
	when
		Person(name matches "\w\w\d{3}\w\w")
	then
		insert(new Message("Regex-A working"));
end
I get following exception:
Unable to Analyse Expression name ~= "\w\w\d{3}\w\w": [Error: illegal escape sequence: w] [Near : {... name ~= "\w\w\d{3}\w\w" ....}] ^ [Line: 1, Column: 22] : [Rule name='Regex-A']

use of KnowledgeBuilder property 'drools.parser.processStringEscapes' seems to have no effect.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list