hoow to match a complete word in ruby? code example Example: hoow to match a complete word in ruby? p text.scan /\bcat\b/