Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eviks
9 days ago
|
parent
|
context
|
favorite
| on:
Use "\A \z", not "^ $" with Python regular express...
so why \A instead of ^?
tkocmathla
9 days 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
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: