+ 1
difference between ^ $ and \A \Z
whats da difference between r"^1..3
quot; and r"\A1..3\Z"2 Respostas
+ 1
Read Regular Expression in python course
+ 1
Dragon Wolf you raised a good question.
It seems like they have the same function when we used them in regular expression. However, they differ in matching multiple lines.
^ can match at the start of the string and after each line break.
\A only ever matches at the start of the string
$ can match at the end of the string and before each line break.
\Z only ever matches at the end of the string.
https://stackoverflow.com/questions/4250062/what-is-the-difference-between-and-a-and-z-in-regex
https://docs.python.org/3/library/re.html