Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eviks
· 10mo ago · 0 comments
so why \A instead of ^?
Comments
[–]
tkocmathla
10mo ago
\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