var text = "이것은 \n 텍스트입니다 \t.";Runtime:
텍스트 = 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.