support recursive sequence and text pattern