Markus

1. The "matches" operator is simply syntax sugar over the String.matches() call, and as such, multi-line  strings will not match. I think you need to create either a function or use a global pattern properly compiled to match multi-lines.

2. This is a strange, but if it is happening, it is a bug. May I ask you please to open a JIRA for it?

   Thanks
       Edson

2007/10/2, Markus Wolf < markus.wolf@nmmn.com>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I have two questions for pattern matching with drools:

1. I have a multiline string to which a would match an expression. I've
tried that in various ways, but none worked. Is this not supported?

2. When I have a rule condition like this:
Somethin( test matches "abc def")
I'll get an exception during compilation saying "RuleError: Unable to
determine the used declarations". What does this mean?
When I remove the space and replace it with \s it does compile well.

Thanks for any help
Markus Wolf
- --
NMMN - New Media Markets & Networks GmbH
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona UStID DE 812 699 852  HRB 71102 Hamburg
HypoVereinsbank  -   BLZ 200 300 00  -  Konto-Nr. 156 29 82

http://www.nmmn.com               Tel.: +49 40 284 118 -0
Langbehnstrasse 6                 Entwicklung:         -720
22761 Hamburg                     Fax:                 -999

Rufen Sie uns kostenlos an: http://www.nmmn.com/call/software
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHAhbxDBHISU1oEKERAomwAKDadi+jqXtdL1D7rl7ehBO3bGm/9ACg123k
6p/ibdw1LsQL28RfUHI4ovk=
=ek2D
-----END PGP SIGNATURE-----
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com