On Sun, Dec 28, 2008 at 11:59 PM, Jonathan Linowes
<jonat...@parkerhill.com> wrote:
>
> Perhaps tell it to ignore any matches with " item" in it, but dont know how

It's called a zero-width negative lookahead, and it looks like this:
/^the (?!\w+ item)(.*) should have a \<(.*)\> tag with "(.*)"/

I didn't test this to be sure, but I believe it should work.  But
rephrasing your steps so that one isn't a special case of the other
would probably be better.  Or just having one step that contains the
logic from both.


-- 
Have Fun,
   Steve Eley (sfe...@gmail.com)
   ESCAPE POD - The Science Fiction Podcast Magazine
   http://www.escapepod.org
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to