var text = "これは\nテキスト\tです。Runtime:
text = text.replace(/ /g,'');
console.log(テキスト);
thisestun文字 g は、文字列全体に対する検索の繰り返しを定義します。この正規表現は空白を削除しましたが、改行と \t.
text.
text = text.replace(/\s/g,'');Execution:
thisisuntext.
Please disable your ad blocker and refresh the window to use this website.