Eric Gunnerson Ask a Question about a simple question about Regular Expressions:

Welcome to week #2 of our class. This is a simple one:

S2 - Verify a string is a hex numberGiven a string, verify that it contains only the digits 0-9 and the letters a through f (either in uppercase or lowercase).

Answer/discussion on Friday…

[[posterous-content:uBElaDAHtglzaibhbbqx]]

*[Via MSDN Blogs]*

My answer for this would have to be

^{1}*$

However I know that it means that you can start a number with a 0 which may or may not be what he wants.

- A-Fa-f0-9
^{[return]}