web/back + front
js 정규식 관련.
qkqhxla1
2017. 2. 3. 11:31
참고 : http://www.nextree.co.kr/p4327/
참고2 : https://opentutorials.org/module/532/6580
이거 두개면 될거같다.
테스트는 온라인에서 하지말고 콘솔에서 node가 되면
var a = /^([a-z0-9]{5,})$/.test('abc1'); // false var b = /^([a-z0-9]{5,})$/.test('abc12'); // true var c = /Abc/i.test('abc123'); // true console.log(a); console.log(b); console.log(c);
처럼 만들어서 node ~.js로 실행해서 true나오는지 false나오는지 체크한후 사용.