HaxeFoundation / HaxeFoundation/haxe

Multiline matching works with \r\n only on JS and Flash?

Open
#6,174 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Test code:
```haxe
class Main {
static function main() {
trace(~/^\d$/gm.replace("1\r\n2\r\n~", "?"));
}
}
```
From my tests (@3b4c330):
Works on: JS, Flash
Does not work on: Neko, C++, C#.

Is this intentional? If so, should the documentation mention it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.