On Nov 14, 2007 11:26 AM, Andrew Holden
I would expect the behavior in Boost 1.33+. The regex first matches the full string "Test", then it matches the empty string at the end.
Try changing the expression to "(.+)" to match 1 or more characters, or "^(.*)" to match only the text at the beginning of the string.
It seems counter-intuitive to me that consuming an entire string should leave an empty string behind. After all, after that empty string is consumed, there's still another empty string, and another, etc. -Max -- "The presentation or 'gift' of the Holy Ghost simply confers upon a man the right to receive at any time, when he is worthy of it and desires it, the power and light of truth of the Holy Ghost, although he may often be left to his own spirit and judgment." --Joseph F. Smith (manual, p. 69) Be pretty if you are, Be witty if you can, But be cheerful if it kills you.