Here’s the program to search my name from a string through regular expression.  $strr = "My name is Gaurav and I'm here for a Perl interview";
if ($strr =~ /Gaurav/) {
print " Your name is there in the string \
";
} else {
print " Your name is not there in the string \
";
}