Javascript – How to split a hex string into individual bytes?
I am trying to split a hexadecimal string, 3E8.8F5C28F5C28, into individual bytes. I tried the following code to split the string: const string = "3E8.8F5C28F5C28"; const res = string.split(/([dw]{2})/).filter(e => e); But it gave me this result: [ '3E', '8.',…