This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
You might also modify the regex to make it as....\d(,\d)*.....if the pattern is always in the form (number,number,number)....Keeping it greedy will hopefully extract the entire number set and neglect anything else.
If debugging is the process of removing bugs, then programming must be the process of putting them in. -- Edsger Dijkstra
Joined: Oct 13, 2005
Using a regular expression might not help; the output might not always be numbers.