In JavaScript, the following one line will convert the string ABCDEFGHIJKL
into an array at chunks of three (3) characters giving ["ABC","DEF","GHI","JKL"]
.
let num= ("ABCDEFGHIJKL").match(/.{3}/g);
console.log(num);
How can the same be done using C# and a regular expression?
1