m/AltaVista found (\d+,?\d*) results/;
should match it. See perldoc perlre for what ? and * do. Also have a look at perldoc perlretut.
Sören
Edit:
There seems to be no node for perlretut here yet. Edited to point to perldoc.com. Anyway, perlre is the better match for this question.
In reply to Re: Regex to match string with numbers with possible comma
by Happy-the-monk
in thread Regex to match string with numbers with possible comma
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |