Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Go Class: 13 Regular Expressions & Search

8.3K views on YouTube

Bonus! I’ve added a segment that was not part of the original class in which I talk about Go’s regular expression (regex) support and some of the gotchas of using regexes (or package “regexp”).

Slides at: https://github.com/matt4biz/go-class-slides/blob/trunk/xmas-2020/README.md

See also https://golang.org/pkg/regexp/syntax/ and https://github.com/google/re2/wiki/Syntax

Russ Cox has some articles at https://swtch.com/~rsc/regexp/
This video discusses “catastrophic backtracking”: https://vimeo.com/112065252