Thank you. I will try that.
On Tue, May 6, 2014 at 10:08 AM, Mauro Talevi <[email protected]>wrote: > Groovy meta matcher supports regex: > > http://jbehave.org/reference/stable/meta-filtering.html > > > On 06/05/2014 08:46, Hans Schwäbli wrote: > > I tried to use a regular expression as a meta info value: +component > sales|purchasing > > With this I intend to run all the stories which are either declared as > "@component sales" or "@component purchasing". > > But it only includes "sales" but not "purchasing". > > You can reproduce it with this code: > > String filter = "+component sales|purchasing"; > > MetaFilter mf = *new* MetaFilter(filter); > > DefaultMetaMatcher dmm = mf.*new* DefaultMetaMatcher(); > > dmm.parse(filter); > > System.*out*.println(dmm.include()); > > Wouldn't it be nice to be able to use regular expressions as meta info > values? Or can I do, what I intended to do, in a different way? > > >
