Can textpipe do this??

Discuss DetachPipe.com huge attachment service and DetachPipe attachment management Add On for Microsoft Outlook. Get help with installation and running, notify us of bugs, request new features and enhancements.

Moderators: DataMystic Support, Moderators

franrpc

Can textpipe do this??

Postby franrpc » Fri Sep 19, 2003 2:22 am

Hi, I´m looking for a tool that allows me to do this:

I´ve got a file with over 2000 pairs of lines like these:

<base loc="en" >some text</base>
<tran loc="fr" origin=""></tran>

And I want to copy text from base to tran, like this:

<base loc="en" >some text</base>
> <tran loc="fr" origin="">some text</tran>

All the text strings are different. Can textpipe do it? How?

jring
Posts: 18
Joined: Tue Sep 23, 2003 3:13 am

Possible Solution

Postby jring » Tue Sep 23, 2003 9:01 am

Use Search and Replace Strategy:

1) Using Excel or some DB, Make a Perl Search and Replace List that corresponds to the below pattern:

SEARCH FOR: \<base loc\=\"en\" \>TEXT1\<\/base\>
REPLACE WITH: <base loc="en" >TEXT1</base> \r\n<tran loc="fr" origin="">TEXT1</tran>

This will create the Text that you want in the format that you desire. Now get rid of all the junk you don't need by creating one Exact - Search and Replace filter:

SEARCH FOR: <tran loc="fr" origin=""></tran>
Replace With Blank:

Here are my results:

Starting with:
<base loc="en" >TEXT1</base>
<tran loc="fr" origin=""></tran>

<base loc="en" >TEXT2</base>
<tran loc="fr" origin=""></tran>

ENDING WITH:
<base loc="en" >TEXT1</base>
<tran loc="fr" origin="">TEXT1</tran>

<base loc="en" >TEXT2</base>
<tran loc="fr" origin="">TEXT2</tran>

Good Luck!

Hi, I´m looking for a tool that allows me to do this:

I´ve got a file with over 2000 pairs of lines like these:

<base loc="en" >some text</base>
<tran loc="fr" origin=""></tran>

And I want to copy text from base to tran, like this:

<base loc="en" >some text</base>
> <tran loc="fr" origin="">some text</tran>

All the text strings are different. Can textpipe do it? How?


Return to “DetachPipe.com and DetachPipe Add On Support”

Who is online

Users browsing this forum: No registered users and 1 guest