Answers for "slice string into segments of 2 characters"

0

slice string into segments of 2 characters

var str = "7831154D207D4E2A20515236393D263F7679157374841E5E";
console.log(str.match(/.{1,2}/g));	//78, 31, 15 ...
Posted by: Guest on October-19-2021

Code answers related to "slice string into segments of 2 characters"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language