If I want all the lines with the text \'ruby\' but not \'myruby\' then this is what I would do.
:g/\\/
My question is what is the
For your first regular expression, you could also do:
:g/[^\ ]ruby\ /
This would ensure there was a space before and after your ruby keyword.