Morning Monks,
I have several xml documents which I need to capitalize the first letter of each element. Rather than going through the laborious process of creating an xml parser, parsing and ucfirst'ing each element, and writing a new document I am thinking a better approach would be to create a regex which uppercases the first letter which follows '<' and '</'. How can I embed a function in a regular expression to accomplish this? Here is what I have so far as a testbed for the '<' matches:
i.e. I want to turn <foo><bar>blitz</bar></foo> into <Foo><Bar>blitz</Bar></Foo>