POS(needle,haystack[,position]) This function finds the first occurrence, if any, of needle within haystack. The answer is the position of the occurrence if there is one (starting from 1) or zero if needle does not occur in haystack. If the optional position is supplied, the search starts from this position instead of 1. If the needle is the null string, zero is returned.