rm.pattern function

Removes pattern from attributes list.