default maximum length is very high, pattern searching stops when no more patterns found