# format_match

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4496
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-format-c-format_match/

```c
static char * format_match(struct format_modifier *fm, const char *pattern, const char *text)
```

## Parameters

- `fm` (`struct format_modifier *`)
- `pattern` (`const char *`)
- `text` (`const char *`)

## Called by

- [`format_replace`](/en/tmux/3.7c/reference/c-function-format-c-format_replace/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L5423)

## Calls

- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L4508)

## Referenced declarations

- [`format_modifier.argc`](/en/tmux/3.7c/reference/c-struct-format_modifier-argc/) (attribute)
- [`format_modifier.argv`](/en/tmux/3.7c/reference/c-struct-format_modifier-argv/) (attribute)
- [`FNM_CASEFOLD`](/en/tmux/3.7c/reference/c-define-compat-h-fnm_casefold/) (constant)
- [`format_modifier`](/en/tmux/3.7c/reference/c-struct-format_modifier/) (struct)
