- or download this
$re = "\.";
...
foreach (qw( . a )) {
print("$_ ", /$re/ ? "matches" : "doesn't match", " $re\n");
}
- or download this
. matches .
a matches .
. matches (?-xism:\.)
a doesn't match (?-xism:\.)
- or download this
$var = '...';
$re = qr/abc\Q$var\Eghi/;
...
)) {
print("$_ ", /$re/ ? "matches" : "doesn't match", "\n");
}
- or download this
abcdefghi doesn't match
abc...ghi matches