2016년 2월 18일 목요일

[nodejs] regex 정규식 match

/ / 사이에 정규식을 넣는다.



var text = "https://url";
var res = text.match(/^http:\/\/www.*/);
if (res != null) {
    //not match
}

댓글 없음:

댓글 쓰기