my $re = qr!yes|no!; my $re2 = qr!${re}\sthankyou!; print "polite yes or no\n" if "yes thankyou" =~ $re2;
Makeshifts last the longest.
In reply to Re^6: regex "o" modifier ("chaining")
by Aristotle
in thread regex "o" modifier
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |