I have a string that I check with include? There are two words in the
string that contains the same word of “design”. One is “design” the
other “designer”. How can I check for an exact phrase of “design”?
Pål Bergström wrote:
I have a string that I check with include? There are two words in the
string that contains the same word of “design”. One is “design” the
other “designer”. How can I check for an exact phrase of “design”?
string =~ /\bdesign\b/
Sebastian H. wrote:
Pål Bergström wrote:
string =~ /\bdesign\b/
Perfect. Thanks.