---
title: re.group.{N}
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/variables/miscellaneous/re-group
---

**Type:** STRING  
**Access:** read-only

**Available in:** all subroutines

If `N` is numeric, it extracts the N-th capture group from the most recently
executed match operator.

`N` can range from 0 to 19; `re.group.0` evaluates to the entire matched string
even if no capture groups have been supplied.

If `N` is an alphanumeric identifier that does not start with a digit, it is
interpreted as a named capture from the match. If no such named capture exists,
`NULL` is returned.
