Regular Expressions 101

Hexadecimal

Open Workspace
  • JavaScript
  • Match
1

Regular Expression

/
^[0-9a-f]+$
/
gy

Description

Only matches if the entire string is in hexadecimal format

Submitted by Anonymous