Regex 101 Exercise S2 – Verify a string is a hex number


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


S2 – Verify a string is a hex number


Given 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…