$word = 'Kicking'; $string = 'George Best is Alive and Kicking' ; if ($string =~ /\b$word\b/){ print "TRUE"; } [download]
In reply to Re: Match Whole Word by artist in thread Match Whole Word by habibrahman_h