Regex is: (?^u:(.bcdef|a.cdef|ab.def|abc.ef|abcd.f|abcde.)) Found it (sbcdef) at position 4