re.group.{N}

STRING, read-only.

Available inall subroutines.

Extracts the N-th capture group from the most recently executed match operator.

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

User contributed notes

BETA

Do you see an error in this page? Do have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact support@fastly.com)