본문 바로가기
카테고리 없음

문자열에서 특정 문자를 추출

by 찬찬2 2022. 5. 22.

let extractStr = "Extract the word 'coding' from this string.";
let codingRegex = /coding/;
let result = extractStr.match(codingRegex);

댓글