Maybe you could use
Quote:

str_stri (String1, String2)

Returns the character number (beginning with 1) of the first case-insensitive occurrence of string2 in string1. If no occurence is found, 0 is returned.

http://www.conitec.net/beta/astr_stri.htm

and search for "\n" to find any line breaks.