Page 1 of 1

switching line position within html

Posted: Tue Feb 03, 2009 7:59 am
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

Re: switching line position within html

Posted: Wed Feb 04, 2009 2:37 pm
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.

Re: switching line position within html

Posted: Fri Feb 06, 2009 2:12 pm
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