sub test($) { my $s = shift; print $s =~ /^[xyz]*$/ ? "$s matches\n" : "$s does not match\n"; }
In reply to Re: matching all characters within a string?
by Thelonius
in thread matching all characters within a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |