You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
356 B

/*
* Dot matching, should not match line terminators; multiline mode etc.
*/
/*---
{
"skip": true
}
---*/
/*FIXME*/
var r, t;
/*===
foo
fii
null
===*/
try {
r = /f../;
t = r.exec('foo'); print(t);
t = r.exec('fii'); print(t);
t = r.exec('fi\n'); print(t); // no match because line terminator
} catch (e) {
print(e.name);
}