[rules-users] Pattern matching question

Dean Jones dean.m.jones at gmail.com
Tue Oct 2 09:35:42 EDT 2007


Hello Markus,

>
> 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?
>
You can prefix the regex to be matched with "(?m)", which enables
multiline mode. The full set of available flags are documented under
"Special Constructs" on the javadoc for pattern:

http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html

Dean.



More information about the rules-users mailing list