Brooks
Brooks

Reputation: 119

.net regex to replace newline with a space

Please help me to make this work. I have several .txt files and each one starts with:

<TABLE class="meta-attributes__table" border="0" cellspacing="0" 
cellpadding="0">

I need to replace only the first newline in each file so that the result to look like this

enter image description here

but without touching the rest of the newlines in the file.

Upvotes: 1

Views: 40

Answers (1)

vks
vks

Reputation: 67968

Find: ^([^\n]*)\n

Replace: $1

Use verbatinum mode with @.

Upvotes: 2

Related Questions