const regex = / +/g; // match one or more spaces // Usage example: const text = 'a b c d\t\te\tf'; const result = text.replace(regex, ' '); //...
確定! 回上一頁