Regular Expression Tutorial - Matching a Hex Value This regular expression tutorial will focus on searching for hex values in a string. Summary This tutorial examines how to determine if a string is hexidecimal. The following regular expression is responsible for matching a hex: RegEx Pattern