This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.