# window_copy_search_rl_regex

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3748
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_rl_regex/

```c
static int window_copy_search_rl_regex(struct grid *gd, u_int *ppx, u_int *psx, u_int py, u_int first, u_int last, regex_t *reg)
```

## Parameters

- `gd` (`struct grid *`)
- `ppx` (`u_int *`)
- `psx` (`u_int *`)
- `py` (`u_int`)
- `first` (`u_int`)
- `last` (`u_int`)
- `reg` (`regex_t *`)

## Called by

- [`window_copy_search_back_overlap`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_back_overlap/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4095)
- [`window_copy_search_jump`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4157)

## Calls

- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3770)
- [`window_copy_last_regex`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_last_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3778)
- [`window_copy_stringify`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3763)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3761)

## Referenced declarations

- [`grid_line.flags`](/en/tmux/latest/reference/c-struct-grid_line-flags/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`GRID_LINE_WRAPPED`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`grid.sx`](/en/tmux/latest/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
- [`WINDOW_COPY_SEARCH_MAX_LINE`](/en/tmux/latest/reference/c-define-window-copy-c-window_copy_search_max_line/) (constant)
