Boost your career as a professional translator!

Boost your career as a professional translator! SDL hosts a virtual conference featuring a selection of free resources to help grow your freelance business, as well as an update on the new features of the world’s most trusted translation software - SDL Trados Studio 2017

Click for Full Participation

How to .txt ezParse rule
Thread poster: Yourcells
Yourcells
Local time: 20:46
English to Chinese
Feb 2, 2008

Hi all,
I have a .txt file containing the contents like below:

ID_ef = "Billing Double Time"
ID_fe = "Billing Due on 10th of Month"
ID_we = "Billing Due on 15th of Month"
ID_gg = "Billing Due on 20th of Month"
ID_hh = "Billing Due on 25th of Month"

Before I use catalyst to translate this .txt file, I want to define a ezParse rule for this .txt file. I can define the string to be translated between the quotes successfully. But I fail to define the context rule which should define the ID like ID_ef or ID_we. Although I have tried many methods to define the context rules, I cannot make the IDs displayed in the preview. Hope anyone can do me a favor to solve this ezParse rule definition problem. Thank you.


Direct link Reply with quote
 
Alchemy Support
Local time: 13:46
English
How to parse string ID's Feb 4, 2008

Hi,

To identify an ID in ezparse, you have to surround it in these () brackets.

For sample text you want to parse I would use this as the start tag:

(ID_[a-zA-Z]+) = "

And this as the end tag:

"


Here is a link to an FAQ on ezparse ->
www.alchemysoftware.ie/support/knowledgebase/parseatextfilewithstringidsandcontextstrings.html


Direct link Reply with quote
 

James Gao
China
Local time: 20:46
English to Chinese
+ ...
another way Aug 9, 2010

Here is just another way which is suitable to more cases. FYI
Start tag: ^([^=]+)=\s"
End tag: "


Direct link Reply with quote
 


There is no moderator assigned specifically to this forum.
To report site rules violations or get help, please contact site staff »


How to .txt ezParse rule

Advanced search






Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

More info »
SDL MultiTerm 2017
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2017 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2017 you can automatically create term lists from your existing documentation to save time.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums