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:
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.