…aven't used regular expressions before, a tutorial introduction is available in perlretut . If you know just a little about them, a quick-start introduction is available in perlrequick . Except for "The Basics" section, this page assumes you are familiar with regular expression b…
…aven't used regular expressions before, a tutorial introduction is available in perlretut . If you know just a little about them, a quick-start introduction is available in perlrequick Except for "The Basics" section, this page assumes you are familiar with regular expression bas…
…both broad and deep, and is the subject of lengthy documentation in perlrequick perlretut , and elsewhere. However, in short: Simple matching if (/foo/) { ... } # true if $_ contains "foo" if ($x =~ /foo/) { ... } # true if $x contains "foo" The // matching operator is documented…