Searching for a range
Posted: Fri Mar 19, 2004 4:42 am
Is there a way to search for range and reorder it. I have an HTML file that looks like the following:
<h4 id= "Command String">Command String</h4>
<p>more stuff in here</p>
<p>more info</p>
<h4 id= "Function">Function</h4>
<p>stuff in here</p>
<p>more stuff</p>
<h4 id= "Comments">Comments</h4>
<p>more comments</p>
Now I have 400 files that have the that same format. And I want to be able to rearange so Comments is first, then Command String, then Function. I need a way to select the entire Command String section and move it below Comments.
First, is there a way to select a section. Basically select <h4 id="Function... until the next <h4 is found. Put this in a variable and spit it out in the order I want.
Thanks for any help.
Garren
<h4 id= "Command String">Command String</h4>
<p>more stuff in here</p>
<p>more info</p>
<h4 id= "Function">Function</h4>
<p>stuff in here</p>
<p>more stuff</p>
<h4 id= "Comments">Comments</h4>
<p>more comments</p>
Now I have 400 files that have the that same format. And I want to be able to rearange so Comments is first, then Command String, then Function. I need a way to select the entire Command String section and move it below Comments.
First, is there a way to select a section. Basically select <h4 id="Function... until the next <h4 is found. Put this in a variable and spit it out in the order I want.
Thanks for any help.
Garren