Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
multiline は RegExp のアクセサープロパティで、正規表現で m フラグが使用されているかどうかを返します。
RegExp.prototype.multiline の値は m フラグが使われていたならば true となり、そうでなければ false になります。m フラグは複数行の入力文字列が複数行として扱われるべきであることを示します。例えば、m フラグが使われた場合、^ と $ は文字列の全体の先頭と末尾だけに一致する特殊文字から、文字列内のそれぞれの行の先頭と末尾に一致する特殊文字に変化します。
multiline の設定アクセサーは undefined です。このプロパティを直接変更することはできません。
| ECMAScript® 2027 Language Specification # sec-get-regexp.prototype.multiline |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年11月10日 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.