switching line position within html

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
nargiz
Posts: 6
Joined: Tue Feb 03, 2009 2:07 am

switching line position within html

Post by nargiz »

Hi,

I have a minor change to perform on a large batch of html files. Can you help me to swap lines 8 and 14. I need line 8 to become line 14 and line 14 to move up to line 8.

thanks in advance,
N
nargiz
Posts: 6
Joined: Tue Feb 03, 2009 2:07 am

Re: switching line position within html

Post by nargiz »

Hi,
I'm new to TextPipe and to this Forum...do I need to be more specific in my query? The question is: is it possible with TextPipe Lite make simple line switch.
I have
line 8 <p class="author">Author</p>
...
line 14<p class="title">Title</p>

I need to switch them and have title on line 8 and author on line 14. Is it possible with textpipe?

thanx.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: switching line position within html

Post by DataMystic Support »

Use a pattern like this:
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)
([^\r\n]*)

Replace with
$1
$2
...
$7
$14
$9
...
$13
$8
Post Reply