> For the complete documentation index, see [llms.txt](https://sevenval.gitbook.io/flat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sevenval.gitbook.io/flat/reference/functions/matches.md).

# matches()

```
boolean matches(string input, string pattern [, string modifiers])
```

The `matches` function returns `true()` if `input` matches the regular expression supplied as `pattern` as influenced by the value of `modifiers`, if present; otherwise, it returns `false()`. Supported modifiers are `i` ("IGNORECASE"), `m` ("MULTILINE"), `s` ("DOTALL") and `x` ("EXTENDED").

Internally, the FIT Server uses [`PCRE`](http://www.pcre.org/original/doc/html/pcresyntax.html).

## Example

`matches("FIT", "^f.", "i")` evaluates to `true()`
