s/ \n//i; #to imprecise? No, its OK. s/ //i; #to imprecise? No, its OK. s/<\/subfield>\n//i; #remove text between fields s/<\/record>\n//i; #remove record end marker s/<\/datafield>//i; #remove end of field marker s/http:\/\/wc.slims.gov.za/WCPLIS/i; #change SITA url to org s/<\/collection>\n//i; #remove end of document if (/\d-\d/) {s/-//g}; #Remove hyphens in ISBN's #### The solar system Chris Oxlade [Author] #### .245. 14|aThe solar system|cChris Oxlade [Author] #### if (/^.024. 3#|a/) {s/.{10}(.............)........../.020. 3#|a$1/};