11.3. Introduction to Regexes

my $str = "Some string here";
if ($str =~ /ome/) {
    print "There is a match\n";
}

if ($str !~ /s r/) {
    print "No match\n";
}

If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed