So you need to read the contents of the file into a scalar variable and match the text with possibly multiple white space or litteral "\n" between any of the characters (hint: \s matches any whitespace including newline).
That should be a clear enough spec, give it a go and get back if you still have an issue.