In a very long line, i need to find a regex that matches something like this:
01 02 03 04 05 06 07 08 09 10 11 12 13 14
now, that string is always made of hexadecimal characters, so it can be something like this also:
ab ba 1a 2f 3c 2a 1d 35 32 12 34 78 90 11
only thing that all of them have in common is that they come in 14-pair or 28 character hex values
How can it be done with PHP?
Have tried a few combinations, for example:
preg_match('/[a-f0-9]{2}/i', $data, $matches);
but none that covers all possibilities.
Thanks in advance.