sub includes { $_=$_[1]; foreach my $ltr (split //,$_[0]) {s/$ltr//i}; if (length) {print "no match"} else {print "match"} } includes("elephant", "ant");
andy.
In reply to Re: Does a regex exist for this problem?
by andye
in thread Regex to find intersection of two words
by 2501
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |