Baseline Widely available
multiline
ì ê·¼ì ìì±ì m
íëê·¸ê° ì ê·ííìì ì¬ì©ëìëì§ ì¬ë¶ë¥¼ ëíë
ëë¤.
const regex1 = new RegExp("^football");
const regex2 = new RegExp("^football", "m");
console.log(regex1.multiline);
// Expected output: false
console.log(regex2.multiline);
// Expected output: true
console.log(regex1.test("rugby\nfootball"));
// Expected output: false
console.log(regex2.test("rugby\nfootball"));
// Expected output: true
ì¤ëª
m
íëê·¸ê° ì¬ì©ë ê²½ì° RegExp.prototype.multiline
ì true
ê°ì ê°ì§ë©°, ê·¸ë ì§ ìì¼ë©´ false
ê°ì ê°ìµëë¤. m
íëê·¸ë ì¬ë¬ ì¤ ì
ë ¥ 문ìì´ì ì¬ë¬ ì¤ë¡ ì²ë¦¬í´ì¼ í¨ì ëíë
ëë¤. ì를 ë¤ì´, m
ì´ ì¬ì©ëë©´ ^
ì $
ë ì ì²´ 문ìì´ì ìì ëë ëììë§ ì¼ì¹íë ê²ìì 문ìì´ ë´ì 모ë ì¤ì ìì ëë ëìì ì¼ì¹íë ê²ì¼ë¡ ë³ê²½ë©ëë¤.
multiline
ì set ì ê·¼ìë undefined
, ì¦ ì ìëì§ ìììµëë¤. ì´ ìì±ì ì§ì ë³ê²½í ì ììµëë¤.
const regex = /foo/m;
console.log(regex.multiline); // true
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4