자바스크립트 정규식 컴파일()
RegExp compile()은 1999년부터 더 이상 사용되지 않습니다.
사용을 피하십시오.
브라우저에서 언제든지 작동이 중지될 수 있습니다.
정의 및 사용
compile() 메서드는 JavaScript 버전 1.5에서 더 이상 사용되지 않습니다 .
이 메서드는 스크립트를 실행하는 동안 정규식을 컴파일하는 데 사용되었습니다.
통사론
RegExpObject.compile(regexp, modifier)
매개변수 값
Parameter | Description |
---|---|
regexp | A regular expression |
modifier | Specifies the type of matching. "g" for a global match, "i" for a case-insensitive match and "gi" for a global, case-insensitive match |