# window_copy_search_lr_regex

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

```c
static int window_copy_search_lr_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_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#L4144)
- [`window_copy_search_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4489)

## 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#L3711)
- [`window_copy_cstrtocellpos`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cstrtocellpos/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3723)
- [`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#L3704)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3702)

## 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)
