Mobile menu

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






Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »
memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »



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