Added an exclude purge pattern

Changes for the exclude pattern support