I have a set of address data which had three main columns policy number, address and index number. In the middle of some of the addresses there are new lines which I want to get rid of. But I don't want to get rid of the new lines separating each data row. I am using textpad and trying to create a regular expression that can locate the specific newlines I want to delete, using a search and replace.
Each index number is a random number followed by "_CDB," so I have been trying to create a regular expression that deletes all newlines that are not preceded by "_CDB." So my current expression uses a lookbehind which looks like the following (?<!_CDB)\n
, but it still seems to be locating every new line rather than just those that are not preceded by "_CDB."
It would be very good if someone could suggest where I am going wrong or suggest another way of eliminating these newlines in the middle of addresses.
Thanks