fix to regexp for delete script