
25 May
2005
25 May
'05
3:28 p.m.
On 5/25/05, Wilkinson, John
const string float_regex = "([+-]?(([\\d]+\\.?)|(\\.[\\d]+)|([\\d]+\\.[\\d]+))){0,1}";
All of your groups are "capturing", which would explain all of the extra matches you get. You should make all but the outermost group in float_regex non-capturing using "(?:" instead of "(". -- Caleb Epstein caleb dot epstein at gmail dot com