Programming Tips - Java: Test if a string is all hexadecimal characters

Date: 2010aug31 Language: Java Q. Java: Test if a string is all hexadecimal characters A. There are many ways but this seems pretty nice:
boolean isAllHex(final String s) { return s.matches("\\p{XDigit}+"); }