View Single Post
Old 06-06-2012, 02:51 PM  
RazorSharpe
Confirmed User
 
RazorSharpe's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Scotland
Posts: 2,238
Help with regular expression

Hi,

I have a tab delimited file that is a few thousand lines long and it's gotten messed up. I was hoping someone could provide me a regex command that could help me resolve the issue.

The file contains the following:

title|description|url|site|keywords

the first 500 entries are fine but about 4000 of the rest are mucked up. Instead of taking the form as above, they now look like this

"title
"|description|url|site|keywords

I basically want to preserve the title as is and remove the "\n"

Anyone have any ideas? Would save me a ton of time!

Cheers
__________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
RazorSharpe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote