Code Snippets

Tag: Capture

Regex with re.search

Use named groups with the re stdlib and access them via groupdict().

Author: chris

Regex with Match Groups

Use named capture groups with the /g flag and matchAll.

Author: chris

Regex FindAllString in Go

Compile a regex and pull every match out of a string.

Author: chris