News for hackers. Stuff that matters.
Re:Why do regexes use `$` and `^` as line anchors? (2024) by acegopher on Tuesday January 21, 2025 @02:29PM (#42784257)
At least for ^ I was always told that the ADM3a terminal keyboard had a HOME key with ~ and ^ on it, which is why ~ means "home directory", and ^ means "home of the line".
Re:Why do regexes use `$` and `^` as line anchors? (2024) by kjellsbells on Tuesday January 21, 2025 @05:43PM (#42786068)
Correct on the ADM3a keyboard. In fact the OP site has a pic:

https://www.hillelwayne.com/post/always-more-history/

Whether that explains the use of tilde and caret, I dont know.

Re:Why do regexes use `$` and `^` as line anchors? (2024) by fanf2 on Tuesday January 21, 2025 @09:31PM (#42788200)
^ for start of line predates the ADM3a