Forum Moderators: phranque

Message Too Old, No Replies

Adv. text file manipulation

         

jakobn

1:48 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



Hi

I have a flat file site which will undergo a redesign soon. There are thousands of HTML files from which I want to extract the 'content section'. This is reasonably easily identified, e.g. it often lies in between a couple of includes.

I guess I'm looking for the equivalent of a Photoshop droplet for text files.

Ideally, I would like to set off a macro to run through a directory, extract the text chunks I'm interested in, write these chunks into individual files and then save them out.

I suppose this is acheivable in ASP, however, does anyone know if a product exists (or a code library) for the Windows environment?.

Any help appreciated

JN

killroy

3:00 pm on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you cen get something like editpad, drop all the fiels in it and do a global replace on the include bits

alternately there are text editors that allow you to use regexes.

SN

divaone

3:08 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



you can try BkReplace_Em. its a good replace program with solid options for replacing (or removing) certain parts of text. you can save backups with the same filenames or a new extension, same folder or a different location.

jakobn

4:08 pm on Nov 7, 2003 (gmt 0)

10+ Year Member




Thanks, I'll check both those out.

JN