Answers for "preg_replace javascript"

0

preg_replace javascript

var text = 'test   test   test test',
    fixed;
fixed = text.replace(/\s+/g, '-');
Posted by: Guest on August-23-2021

Code answers related to "preg_replace javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language