You can make it less greedy by adding "?" - this works:
Update: Multiple collisions on this reply!my ($Regex1) = ($String =~ /.*?(\d{6,8}).*/);
Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)
In reply to Re: Regex Quantifiers
by NetWallah
in thread Regex Quantifiers
by FFSparky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |