Full Stack Software Developer
nodejs
mongodb
java
phantomjs
nodejs
linux
2016년 2월 18일 목요일
[nodejs] regex 정규식 match
/ / 사이에 정규식을 넣는다.
var
text
=
"https://url"
;
var
res
=
text.match(
/^http:\/\/www.*/
);
if
(res
!=
null
) {
//not match
}
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기