Regular Expressions 101

Community Patterns

1...45678...284

hex string split by blank

0

Regular Expression
ECMAScript (JavaScript)

/
^[0-9a-fA-F]{1,2}$|^[0-9a-fA-F]{1,2}\s+([0-9a-fA-F]{1,2}\s)*[0-9a-fA-F]{1,2}$
/
gm

Description

match like aa bb cc dd ee ff 00 aa 13 0 1 2 3 aa

Submitted by Victor Lin - 2 years ago