Hi Hitesh, The Steps class has an extra constructor that takes a StepsConfiguration. Inside that is the PrefixCapturingPatternBuilder, which is responsible for matching steps to patterns. If you wanted to do something differently to the $token method that we're using, you could replace this to allow matches to happen in any way you prefer.
It doesn't support this out of the box. Cheers, Liz. On Wed, Oct 28, 2009 at 8:40 PM, Hitesh Sarda <[email protected]> wrote: > Hi, > > First, let me thank you for the excellent work. I am dipping my toes > into jbehave and liking it so far. > > I am wondering if jbehave supports regex matching in step definition. > > cucumber allows a step like below, which gives great flexibility. > > Given /^I have opened "([^\"]*)"$/ > > Is something similar possible in jbehave? > > Thanks > Hitesh > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Elizabeth Keogh [email protected] http://lizkeogh.com http://jbehave.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
