Mobile menu

How to .txt ezParse rule
Thread poster: Yourcells
Yourcells
Local time: 05:17
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: 22:17
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: 05:17
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






SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use SDL Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

More info »



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