Search the web
Sign In
New User? Sign Up
textpipe-discuss · TextPipe user discussion forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Can Textpipe do this??   Message List  
Reply | Forward Message #504 of 525 |
RE: [textpipe-discuss] Can Textpipe do this??

Hi Fran,

That's easy. Try a search replace pattern like this:

|
|--Perl pattern [ <base loc="en" >(.*)</base>\r\n <tran loc="fr"
origin=""></tran>] with [ <base loc="en" >$1</base>\r\n <tran loc="fr"
origin="">$1</tran>]
| [ ] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [X] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [ ] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [X] '.' matches newline
| [ ] UTF-8 Support
|



Regards,

Simon Carter, Crystal Software, www.crystalsoftware.com.au, (+61) 3 9888
3104 (GMT+10 hours)
TextPipe Pro - Industrial strength text transformation workbench
Winner of SIA 2003 'Best Application' award
DataPipe - Swiss army knife for fixing database data
www.downloadpipe.com.au - Australia's largest download site


-----Original Message-----
From: franrpc [mailto:frarquit@...]
Sent: Friday, 19 September 2003 2:09 AM
To: textpipe-discuss@yahoogroups.com
Subject: [textpipe-discuss] Can Textpipe do this??


I´ve got a XML file with over 2000 pairs of lines with the following
structure:

<base loc="en" >TEXT TO COPY</base>
<tran loc="fr" origin=""></tran>

and I need to copy the text between the "base" tags into the "tran"
tags, like this:

<base loc="en" >TEXT TO COPY</base>
<tran loc="fr" origin="">TEXT TO COPY</tran>

In each one of the 2000+ pairs the text is different.

Is textpipe what I need? If anyone can throw a brief explanation, I´d
be most thankful


Fran




This is the TextPipe Pro discussion group.

To unsubscribe from this group, please send a blank email to:
textpipe-discuss-unsubscribe@yahoogroups.com

For frequently asked questions, please see the TextPipe Pro FAQ and
viewlets at
http://www.crystalsoftware.com.au/textpipe/faq.html

To search previously asked questions, please use the search facilities
at
http://groups.yahoo.com/group/textpipe-discuss/messages


Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/








Tue Dec 2, 2003 6:10 am

crystalsoftw...
Offline Offline
Send Email Send Email

Forward
Message #504 of 525 |
Expand Messages Author Sort by Date

I´ve got a XML file with over 2000 pairs of lines with the following structure: <base loc="en" >TEXT TO COPY</base> <tran loc="fr" origin=""></tran> and I...
franrpc
Offline Send Email
Dec 2, 2003
5:02 am

Hi Fran, ... origin=""></tran>] with [ <base loc="en" >$1</base>\r\n <tran loc="fr" origin="">$1</tran>] ... Regards, Simon Carter, Crystal Software,...
Simon Carter, Crystal...
crystalsoftw...
Offline Send Email
Dec 2, 2003
6:08 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help