Full Stack Software Developer
nodejs
mongodb
java
phantomjs
nodejs
linux
2016년 2월 18일 목요일
[nodejs] replaceAll
Java 에서 replaceAll 과 같은 함수가
replace 함수이다.
javascript 에서는 // 로 정규식을 표현한다.
var result = "hi there".replace("hi", "hello");
console.log(result);
위에서 출력되는 거는 ? 말 안 해도 알 것이다.
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기