Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex separator

let separator = 265264849;
console.log(separator.toString().replace(/B(?=(d{3})+(?!d))/g, " "));
// " 265264894 " becomes " 265 265 894 "
 
PREVIOUS NEXT
Tagged: #regex #separator
ADD COMMENT
Topic
Name
3+5 =