Thanks. I couldn't think of any other sensible way of doing it but I wanted to make sure I wasn't missing anything obvious.
It would have been nice if there was already a pre-defined character class for this though.(since \A and \a are already taken so I suppose \I and \i?)