Added an exclude purge pattern

Changes for the exclude pattern support
Just trying this out. Trst