Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020년 7월.
dotAll 속성은 s 플래그가 정규식과 함께 사용되는지 여부를 나타냅니다. dotAll은 개별 정규식 인스턴스의 읽기 전용 속성입니다.
dotAll의 값은 Boolean으로 s 플래그가 사용된 경우 true, 그렇지 않으면 false입니다. s 플래그는 점 특수 문자(.)가 문자열의 다음 줄 종결자("newline") 문자와 추가로 일치해야 함을 나타냅니다. 그렇지 않으면 일치하지 않습니다.
이것은 사실상 점이 유니코드 BMP(Basic Multilingual Plane)의 모든 문자와 일치한다는 것을 의미합니다. 별 기호와 일치하도록 하려면 u(유니코드) 플래그를 사용해야 합니다. 두 플래그를 함께 사용하면 예외 없이 점이 모든 유니코드 문자와 일치하도록 만들 수 있습니다.
dotAll의 set 접근자는 undefined, 즉 정의되지 않았습니다. 이 속성은 직접 변경할 수 없습니다.
| ECMAScript® 2027 Language Specification # sec-get-regexp.prototype.dotAll |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.