Exclude segments of xml files with regex
What is your experience with regex to exclude segements of xml files from translation?
I want to exclude texts like the ones below from appearing in the translation editor:
<en>2000 x 1451</en>
<en>72941</en>
using the regex ^[\d\sx]*$
But the fields still show up in the translation editor. Does anybody know why? Did anybody ever have problems with this?
Daniel
-
Hello Daniel,
thanks for the question.
Have you tried following regular expressions:
1) ([0-9]+ x [0-9]+)
for this
<en>2000 x 1451</en>
2) [0-9]+
for this
<en>72941</en>
Let me know, please.
All the best
Wojciech
0 -
I checked my regex expressions in a regex checker before, so they should have worked. Your expressions did not work either I am afraid.
Daniel
0 -
Thanks for replying Daniel.
I am a bit surprised by this as I have tested my regexs by processing in Wordbee the file with mentioned numbers and it worked.
All the best
Wojciech
0 -
Well, I must be doing something wrong... but what? I am using Chrome on Windows 7. This is how the settings look:
And this is the source:
The editor will display this:

Daniel
0 -
Thanks Daniel.
I am also using Chrome on Windows 7
My settings:

my file:

my editor display:

All the best
Wojciech
0 -
0 -
Okay, I found the difference: I was importing a file as "multilingual", you must have been importing your file as "monolingual". Your regex expressions do work for me if I import monolingual files.
Daniel
0 -
Is this image showing your status Daniel? :-)
All the best
Wojciech
0 -
Did you try your regex with multilingual XML files as well?
Daniel
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
9 Kommentare