by tkocmathla·6mo ago·view on hn ↗\A always matches the start of the string, but in multiline mode, ^ will match both the start of the string and the start of each line:https://docs.python.org/3/library/re.html#re.MULTILINE