# ProcessKiller.pattern

Set the process name pattern to match.

```rhai
killer.pattern(pattern: &str) -> ProcessKiller
```

Uses process name matching on your platform (pkill on Unix-like systems, taskkill on Windows).

## Parameters

- `pattern` - Process name pattern to match

## Example

```rhai
process_killer()
    .pattern("nginx")
    .kill()?;
```
