Log in

No account? Create an account
05 January 2006 @ 04:10 pm
uppercase all attributes in an xml file with textpad  
For my own reference.

Assuming the attributes are the only things in double quotes,
in the Replace dialog, check Regular Expression, find ".*" and replace with \U&. The & is the text matching the entire search pattern, \U uppercases it.

Bah, also assuming there's only one set of double quotes per line. Well, it was enough for the task in hand. Can probably do something with [^"] to be more general.
Current Mood: geekygeeky
Current Music: Genome - an autobiography of a species in 23 chapters
spedbug: SillySpedClownspedbug on January 5th, 2006 05:00 pm (UTC)
Exactly what I always say!
a very caring potatomollydot on January 5th, 2006 05:03 pm (UTC)
Well, it's just common sense. I don't know why I bothered writing it down, really. Doesn't everybody know that?
spedbugspedbug on January 6th, 2006 12:56 am (UTC)
[nods head]