Skip to content

perl regexp

ghdrako edited this page Feb 27, 2023 · 1 revision
$foo =~ m/abc/
$foo =~ m<abc>
$foo =~ m'abc'
$foo =~ m/this|that/
$foo =~ m/this\|that/  #  prefixing the "|" to treat it as ordinary sign

Test

Clone this wiki locally