사용자 도구

사이트 도구


wiki:javascript:regular_expression:정규표현식으로_이메일_유효성_체크하기

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
wiki:javascript:regular_expression:정규표현식으로_이메일_유효성_체크하기 [2020/06/04 13:26]
dhan
wiki:javascript:regular_expression:정규표현식으로_이메일_유효성_체크하기 [2023/01/13 18:44] (현재)
줄 44: 줄 44:
 var str = 'apple apple apple'; var str = 'apple apple apple';
 var result = str.replace('apple', 'orange'); var result = str.replace('apple', 'orange');
 +=> orange apple apple
 </code> </code>
-replace는 처음 매칭되는 1번만 수행됨+replace는 처음 매칭되는 1번만 수행됨 \\
 \\ \\
 > replace 정규식 사용하기(java의 replaceAll) > replace 정규식 사용하기(java의 replaceAll)
줄 51: 줄 52:
 var str = 'apple apple apple'; var str = 'apple apple apple';
 var result = str.replace(/apple/g, 'orange'); var result = str.replace(/apple/g, 'orange');
 +=> orange orange orange
 </code> </code>
-\\ 
 > 대소문자 구분은 /문자열/gi > 대소문자 구분은 /문자열/gi
 \\ \\
줄 59: 줄 60:
 var str = 'apple.apple.apple'; var str = 'apple.apple.apple';
 var result = str.replace(/\./g, ' '); var result = str.replace(/\./g, ' ');
 +=> apple apple apple
 </code> </code>
 +\\
  
  
  
 {{tag>eleven 주레피 정규표현식 정규식 regular expression 유효성체크}} {{tag>eleven 주레피 정규표현식 정규식 regular expression 유효성체크}}
/volume1/web/dokuwiki/data/attic/wiki/javascript/regular_expression/정규표현식으로_이메일_유효성_체크하기.1591244772.txt.gz · 마지막으로 수정됨: 2022/03/10 19:52 (바깥 편집)