ABCD # pattern ABCD # match ACDB # no match ABED # match BBCD # match ABC # no match