Comment on Why do regexes use `$` and `^` as line anchors?Comments−sys_647382yThey'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.−em5002yPer the article, these anchors appear in Ken Thompson's port of the QED text editor, which dates back to 1970.
Comments
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.
Per the article, these anchors appear in Ken Thompson's port of the QED text editor, which dates back to 1970.