-------------------------------1152484751 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Can you use this: line \"NAME\",\"610 \"A\" STREET\",\"STATE\",\"POSTAL_CODE\"" regexp ? ,])"|"(? ,])/ # (? s for maintaining the character that is not a comma) a ne.gsub(regexp,'\1'+"'"+'\2') # \1, \2 are the first and second matches in brackets regexp ([A-Z])'/ # if the address is "610 A street" b ¨Âóõâ¨òåçåøð¬§¢§«§Ü±§«§¢§© p line p a p b Best regards, Axel -------------------------------1152484751--