hexadecimal property

RegExp hexadecimal
final

Matches hexadecimal numbers (0-9 and A-F case-insensitive).

  • Examples (✅ Valid): 1a2b3C, FFEE99
  • Examples (❌ Invalid): Z123, 12G

Use Case: Color codes, memory dumps, binary files.

Implementation

static final RegExp hexadecimal = RegExp(r'^[0-9a-fA-F]+$');