> So there you have it, an explanation for the regex anchors that kinda makes sense.<p>That’s not an explanation, it’s <i>speculation</i>. The whole article was guess work and you picked something that sounded plausible. Ken Thompson is alive, why not ask and confirm? <i>Then</i> you could say you have an explanation.
Ken is still around; did the author reach out and ask? Could be a similar story to Rob Pike and the Go date format: he didn't think about it and just picked the first thing that came to mind.
Not sure about $ sign, but ^ probably comes from ADM-3A:
<a href="https://en.wikipedia.org/wiki/ADM-3A#Legacy" rel="nofollow">https://en.wikipedia.org/wiki/ADM-3A#Legacy</a><p>And here is a photo of its keyboard:
<a href="https://twitter.com/toresbe/status/1756800589340549609/photo/2" rel="nofollow">https://twitter.com/toresbe/status/1756800589340549609/photo...</a>
They're because that's what Bill Joy used in vi back in 1979 to move to the beginning and end of a line. It made sense to use them for regex too.