contact  |  about  |  sitemap


contact  |  about  |  sitemap

Replace Mulitple Instance in File
Last Post 20 Dec 2009 02:42 PM by Expendable Youth. 2 Replies.
Sort:
PrevPrev NextNext
Author Messages
expendableyouth

--
15 Dec 2009 02:01 AM
Hello,

I am trying to do a simple repeating search pattern, to replace first and second instances of <tr> to <tr class="odd> and <tr class="even">

i.e. convert

<tr>row 1</tr>
<tr>row 2</tr>
<tr>row 3</tr>
<tr>row 4</tr>
<tr>row 5</tr>
....etc....

to

<tr class="odd">row 1</tr>
<tr class="even">row 2</tr>
<tr class="odd">row 3</tr>
<tr class="even">row 4</tr>
<tr class="odd">row 5</tr>
....etc....

-=-

Now I need these replacements done "in the source file" in batch (*.txt) rather export them. Is this possible through Djuggler? If not, does anyone know of a program that can do this?




Tijn

--
15 Dec 2009 04:14 PM
Please see the attached example script.

Regards,
Tijn

OddEvenLineExample.zip

Expendable Youth

--
20 Dec 2009 02:42 PM
Thanks Tijn! Most appreciated!!!




Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.