Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

slice string into segments of 2 characters

var str = "7831154D207D4E2A20515236393D263F7679157374841E5E";
console.log(str.match(/.{1,2}/g));	//78, 31, 15 ...
 
PREVIOUS NEXT
Tagged: #slice #string #segments #characters
ADD COMMENT
Topic
Name
9+5 =