Skip to content

Instantly share code, notes, and snippets.

@AndrewRussellHayes
Created November 20, 2013 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewRussellHayes/7570455 to your computer and use it in GitHub Desktop.
Save AndrewRussellHayes/7570455 to your computer and use it in GitHub Desktop.
very basic string match
$sentence = "the boy is 20";
if($sentence =~ /the/)
{
print "true";
}
if($sentence =~ /Trhe/)
{
print "true"; #will return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment