FFI binding to Google's RE2. Matching runs in linear time, so no catastrophic backtracking. Here is a validator that ships in a lot of Dart code.

Source: [Dev.to](https://dev.to/yusufihsangorgel/a-dart-regex-that-cannot-be-made-to-hang-1pl4)

Sponsored