Using the Demonstration Applet http://jakarta.apache.org/oro/demo.html If you: 1: choose Glob Expression 2: Then in the first text area exter text "input*" 3: choose contains() 4: Then in the Search Input text area exter text: someAAAinput someBBBinput The search results is: Compiling regular expression. Searching Match 1: input Match 2: input The input contained 2 matches. This seems like a bug to me.
To obtain the behavior you desire call Perl5Matcher.setMultiline with an argument of true prior to performing your matches. If you don't know how to use the software, please post a question to the oro-user mailing list first before opening a bug report.