andmy $zip_match = () = $card_zip =~ /(12345)\-?(6789)?/g;
Both Returned 0 on no match and 2 otherwise, even if only the first 5 digits match.$_ = $card_zip; my $zip_match = () = /(12345)\-?(6789)?/g;
In reply to Re: Re: Zipcode Regex Help
by tcf22
in thread Zipcode Regex Help
by tcf22
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |