# group var (regex)

Source: https://ref.dm-lang.org/regex/var/group
Added in BYOND 510.

After a call to Find(), if this regular expression had any parentheses groups, whatever text was matched in those groups is stored here in a list.

## Example

```dm
var/regex/R = new("B(.)(.)(.)D")
R.Find("BYOND")     // find this pattern in "BYOND"
```

The result of the example is that R.group is list("Y","O","N").

### See also
- [regex datum](https://ref.dm-lang.org/regex/index.md)
- [Find proc (regex)](https://ref.dm-lang.org/regex/proc/Find.md)
- [index var (regex)](https://ref.dm-lang.org/regex/var/index_page.md)
- [match var (regex)](https://ref.dm-lang.org/regex/var/match.md)
