티스토리 뷰
var str = "The rain in SPAIN stays mainly in the plain";
var res = str.match(/ain/g);
https://www.w3schools.com/jsref/jsref_match.asp
JavaScript String match() Method
JavaScript String match() Method ❮ JavaScript String Reference --> Example Search a string for "ain": var str = "The rain in SPAIN stays mainly in the plain"; var res = str.match(/ain/g); The result of res will be an array with the values: var str = "The
www.w3schools.com
const str = 'table football';
const regex = RegExp('foo*');
console.log(regex.test(str));
// expected output: true
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
RegExp.prototype.test()
The test() method executes a search for a match between a regular expression and a specified string. Returns true or false.
developer.mozilla.org
https://developer.mozilla.org/ko/docs/Web/JavaScript/Guide/%EC%A0%95%EA%B7%9C%EC%8B%9D
정규 표현식
정규 표현식은 문자열에 나타는 특정 문자 조합과 대응시키기 위해 사용되는 패턴입니다. 자바스크립트에서, 정규 표현식 또한 객체입니다. 이 패턴들은 RegExp의 exec 메소드와 test 메소드 ,��
developer.mozilla.org
'공부' 카테고리의 다른 글
[Python] *args (1) | 2020.02.27 |
---|---|
Install MongoDB Community Edition on macOS (0) | 2020.02.27 |
[Java] Date gap (0) | 2020.02.27 |
[Oracle] Order by DESC nulls last (0) | 2020.02.27 |
[Oracle] to_date & to_char (0) | 2020.02.21 |
- Total
- Today
- Yesterday
- 테슬라 추천
- 테슬라 리퍼럴 코드 생성
- 테슬라 리퍼럴 코드 혜택
- 테슬라 리퍼럴 코드
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴 코드 확인
- Bot
- 메디파크 내과 전문의 의학박사 김영수
- 할인
- 테슬라 레퍼럴
- 김달
- 클루지
- 모델 Y 레퍼럴
- 유투브
- 연애학개론
- 개리마커스
- 팔로워 수 세기
- Kluge
- COUNT
- 책그림
- 테슬라 크레딧 사용
- 레퍼럴
- follower
- wlw
- 테슬라
- 모델y
- 인스타그램
- 테슬라 레퍼럴 적용 확인
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |