# E0081

Warning name: `regex_match_missing_after`

A non-streaming `lexscan` pattern can leave an unmatched input suffix, but the
pattern does not bind or explicitly ignore that suffix.

For `String` and `StringView` inputs, add `$` when the match must end with the
input, or add `after=` to bind or ignore the remaining suffix.

## Erroneous example

```{literalinclude} /sources/error_codes/0081_error/top.mbt
:language: moonbit
```

## Suggestion

Anchor the regex at the end, or make the suffix explicit with `after=suffix` or
`after=_`.

```{literalinclude} /sources/error_codes/0081_fixed/top.mbt
:language: moonbit
```
