switching line position within html

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

switching line position within html

Postby nargiz » Tue Feb 03, 2009 7:59 am

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

Postby nargiz » Wed Feb 04, 2009 2:37 pm

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: 2164
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: switching line position within html

Postby DataMystic Support » Fri Feb 06, 2009 2:12 pm

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
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Baidu [Spider] and 11 guests