# E0076

Warning name: `lexmatch_first_match`

This warning described an earlier experimental form of first-match `lexmatch`
and is not emitted by the current compiler.

Current `lexmatch` expressions use `re"..."` case patterns and may use the
default first-match strategy. For a single boolean check, a regex match
expression is usually more concise.

## Erroneous example

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

## Suggestion

Rewrite the old string-piece pattern syntax with `re"..."` cases, or use a
regex match expression when only a boolean result is needed.

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