Hi. I'm checking TextPipe out, to see if it fits my needs. What I want, is a program that will be capable to search a bunch of XML files, that are located in various folders. I then want it to find a certain tag, and replace whatever is in between the <start> and </start> tag to be replaced by the foldername, where it is placed!
Will TextPipe be capable of doing this ?
is this the right prog for me ?
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2227
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Re: is this the right prog for me ?
Yes, this is easy. Use a filter like this:
Code: Select all
Restrict to between tags <START>...</START>
| [ ] Include text
| [ ] Match case
|
|--Perl pattern [.*?] with [@fullInputFilename]
|
+--Perl pattern [[^\]*$] with []