<pre>function lineOffset pattern,string  return number of lines in char 1 to offset(pattern,string) of stringend lineOffset</pre>