JavaScript 정규표현식 정리 & 설명
2020.01.16
Example var str = "Is this all there is?"; var patt1 = /is/i; document.write(str.match(patt1)); //결과 : Is -문장의 첫번째 문자열(대소문자 구분x)var patt1=/is/g; document.write(str.match(patt1)); //결과 : is,is -문장의 모든 문자열(대소문자 구분o) var patt1=/is/gi; document.write(str.match(patt1)); //결과 : Is,is,is -문장의 모든 문자열(대소문자 구분x) var str = "The best things in life are free"; var patt1=new RegExp("ber"); var patt2=new RegEx..