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 2023년 9월.
unicodeSets 접근자 속성은 RegExp 인스턴스의 속성으로, 이 정규 표현식에 v 플래그가 사용되었는지 여부를 반환합니다.
RegExp.prototype.unicodeSets는 v 플래그가 사용된 경우 true 값을 가지며, 그렇지 않으면 false입니다. v 플래그는 u 플래그의 업그레이드 버전으로, 더 많은 유니코드 관련 기능을 활성화합니다. ("v"는 알파벳에서 "u" 다음 글자입니다.) u와 v는 동일한 정규식을 호환되지 않는 방식으로 해석하기 때문에, 두 플래그를 모두 사용하면 SyntaxError가 발생합니다. v 플래그를 사용하면 u 플래그 설명에 언급된 모든 기능과 함께 다음과 같은 추가 기능을 사용할 수 있습니다.
u 모드에서 유효했던 일부 정규식은 v 모드에서 유효하지 않습니다. 특히 문자 클래스 구문이 다르고 일부 문자는 더 이상 문자 그대로 나타날 수 없습니다. 자세한 내용은 v 모드 문자 클래스를 참조하세요.
참고 :>v 모드는 문자소를 단일 문자로 해석하지 않습니다. 여전히 다수의 코드 포인트입니다. 예를 들어, /[🇺🇳]/v는 여전히 "🇺"와 일치할 수 있습니다.
unicodeSets의 설정자는 undefined입니다. 이 속성을 직접 변경할 수 없습니다.
| ECMAScript® 2027 Language Specification # sec-get-regexp.prototype.unicodesets |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 9월 29일 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.