On Mar 4, 2005, at 8:48 AM, [EMAIL PROTECTED] wrote:
Quoting Radha Sangal <[EMAIL PROTECTED]>:
Could someone help me build regular expression for a string like this 1,6,3,2.
I am getting error if I write it like this String patternStr = "([0-9]+","+[0-9]+","+[0-9]+","+[0-9] + )";
wouldn't this work?
[0-9]+(,[0-9]){3}
Oh yeah, d'oh... my r.e. was wrong, it wants an extra comma :-(... however I think you do need either a '+' or a '?' after the '{3}', right?
—ml—