Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

so why \A instead of ^?




\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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: