mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
19 lines
242 B
TypeScript
19 lines
242 B
TypeScript
|
// with modifiers
|
||
|
/(abc)\//ig;
|
||
|
|
||
|
// without modifiers
|
||
|
/(abc)\//;
|
||
|
|
||
|
// can be assigned
|
||
|
var re = /(abc)\//ig;
|
||
|
|
||
|
// generally behaves like an expression
|
||
|
var noRe = !/(abc)\//i;
|
||
|
|
||
|
// inner line break is unterminated
|
||
|
/a
|
||
|
b/ig;
|
||
|
|
||
|
// just a comment
|
||
|
//ig;
|