And after running this script the $1 variable will be empty! Why? "*" means ZERO of SEVERAL matchings so it should match at least one number. Or it shouldn't :) ?$string = "qwerty 12345"; $string =~ m/([1-5]*)/; print $1;
In reply to Search operator and * quantifier by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |