Comp sci: regular expressions: newline in regex
Self-tutoring about regex: the tutor mentions the newline in a detection pattern. In PHP regex, \n means ‘newline’. Therefore, $pat=’/\n/’; will be found in a string containing a newline. Source: w3schools.com