contents   index   previous   next



RegExp multiline

syntax:

regexp.multiline

description:

A read-only property of an instance of a RegExp object. It is true if "m" is an attribute in the regular expression pattern being used. There is no static (or global) RegExp multiline property in ScriptEase JavaScript since the presence of one is based on old technology and is confusing now that an instance property exists.

 

This property determines whether a pattern search is done in a multiline mode. When a pattern is defined, the multiline attribute may be set, for example, /^t/m. A pattern definition such as this one, sets the instance property regexp.multiline to true.

 

Read-only property. Use RegExp compile() to change.

 

see:

Regular expression attributes

 

example:

// In all these examples, pat.multiline is set

// to true. If there were no "m" in the attributes,

// then pat.multiline would be set to false.

var pat = /^Begin/m;

//or

var pat = new RegExp("^Begin", "igm");

//or

var pat = /^Begin/m;

//or

var pat = new RegExp("^Begin", "igm");

 


RegExp source