Question: what is z in regex?
Answer: \Z is same as $ , it matches the end of the string, the end of the string can be followed by a line break. \z matches the end of the string, can't be followed by line break.