// new RegExp();
//
true
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp("empty flags", "");
/empty flags/
true
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp("dotall flag", "s");
/dotall flag/s
true
dotall true
extended false
global false
ignoreCase false
multiline false

// new RegExp("extended flag", "x");
/extended flag/x
true
dotall false
extended true
global false
ignoreCase false
multiline false

// new RegExp("global flag", "g");
/global flag/g
true
dotall false
extended false
global true
ignoreCase false
multiline false

// new RegExp("ignoreCase flag", "i");
/ignoreCase flag/i
true
dotall false
extended false
global false
ignoreCase true
multiline false

// new RegExp("multiline flag", "m");
/multiline flag/m
true
dotall false
extended false
global false
ignoreCase false
multiline true

// new RegExp("all flags", "sxgim");
/all flags/gimsx
true
dotall true
extended true
global true
ignoreCase true
multiline true

// new RegExp("invalid flags", "|%?-/.あa");
/invalid flags/
true
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp("uppercase flags", "SXGIM");
/uppercase flags/
true
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp("duplicate flags", "ssgg");
/duplicate flags/gs
true
dotall true
extended false
global true
ignoreCase false
multiline false

// new RegExp(undefined, undefined);
//
false
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp(null, null);
/null/
false
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp(/#((.*))$/m, undefined);
/#((.*))$/m
false
dotall false
extended false
global false
ignoreCase false
multiline true

// new RegExp(/empty flags/, undefined);
/empty flags/
false
dotall false
extended false
global false
ignoreCase false
multiline false

// new RegExp(/dotall embedded flags/s, undefined);
/dotall embedded flags/s
false
dotall true
extended false
global false
ignoreCase false
multiline false

// new RegExp(/empty string separate flag/s, "");
TypeError: Error #1100: Cannot supply flags when constructing one RegExp from another.
// new RegExp(/dotall separate flags/s, "s");
TypeError: Error #1100: Cannot supply flags when constructing one RegExp from another.
