SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL MultiTerm
SDL Passolo
SDL Speech to Text
SDL Managed Translation - Enterprise
SDL MultiTrans
SDL TMS
SDL WorldServer
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL XPP
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Language Developers
Tridion Developers
Tridion Docs Developers
Xopus Developers
Community Help
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Style Guides
Language Technology Partner Group
SDL Academic Partners
SDL Approved Trainers
SDL Enterprise Technology Partners
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
I am a bit puzzled by a regex match:
In the above screenshot, the regex matches if I have a no-break space between "81" and "cm". I does not match if I replace the no-break space with a normal space.
This is the regex:
[\d,]*\d((\s?[\x2D\u058A\u1806\u2012\u2014\u2015\uFE63\uFF0D]\s?)|(\s\u2012\s)|(\s\u2012)|(\u2012\s))+\d[\d,]*
As the name suggests, I want it to match when a date range or numerical range is connected with a dash other than an en-dash.
Why does it match here? What did I do wrong?
Daniel
Daniel Hug
On a quick inspection I'd say it's because the criteria for numbers matches but without the dashes, you have spaces instead. But t's a bit of a guess because using this alone may not be representative of what you have in the sdlxliff or what Studio may be doing (it's always possible Studio is simply wrong and it's not your rule at all):
F754 8 cm Pfoster
If you can share the file, at least with that segment in it, I'm happy to take a look?
Paul
I sent you the file by email.
The Unicode \p{Zs} and \p{Pd} character classes for space separators and dashes, respectively, can be used to avoid the need to write a list of Unicode characters.
Not the answer to your question, but I'd like to comment that if you delete both the leading and the trailing [\d,]* , the resulting regex will match the same segments as the original regex. So you can simplify a bit your regex.
Jesús Prieto
You are right. Can be I once had a capture group there - I use these regexes in different situations.