JavaScript RegExp multiline property
- Forrige side lastIndex
- Næste side source
- Gå tilbage til forrige niveau JavaScript RegExp Referencehandbog
Definition and usage
multiline
Property specifies whether the m modifier is set.
If the "m" modifier is set, this property returns true
, otherwise returns false
.
Example
let text = "Visit CodeW3C.com!"; let pattern = /W3S/gi; // "g" and "i" is set, "m" is not. let result = pattern.multiline;
Syntax
regexp.multiline
Return value
Type | Description |
---|---|
Boolean value | If the "m" modifier is set, returns true, otherwise returns false. |
Browser support
multiline
Er ECMAScript1 (ES1) egenskaber.
Alle browsere understøtter fuldt ES1 (JavaScript 1997):
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Support | Support | Support | Support | Support | Support |
- Forrige side lastIndex
- Næste side source
- Gå tilbage til forrige niveau JavaScript RegExp Referencehandbog