Help for this page
$string = 'My Test Data'; $regex = '(?i)\btest\b'; print $string =~ m/$regex/ ? "Match\n" : "No match\n";
$string = 'My Test Data'; $regex = '(?i)\btest\b'; print $string =~ $regex ? "Match\n" : "No match\n";