http://qs321.pair.com?node_id=773947


in reply to regex capture case

I don't know if it is the right solution for your problem, but did you thought about using ucfirst on the result?