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/