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
switching line position within html
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
Re: switching line position within html
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.
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.
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: switching line position within html
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
([^\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