Edit pattern in different file formats