Trados Studio
Trados GroupShare
Trados Business Manager
Trados Live
MultiTerm
Passolo
Speech to Text
Managed Translation - Enterprise
MultiTrans
TMS
Translation Management Connectors
WorldServer
LiveContent S1000D
Contenta S1000D
XPP
Tridion Docs
Tridion Sites
Machine Translation Cloud
Machine Translation Connectors
Machine Translation Edge
Language Developers
Tridion Docs Developers
Xopus Developers
Community Help
RWS User Experience
RWS Community Internal Group
RWS Access Customer Portal
RWS Professional Services
RWS Training & Certification
Style Guides
Language Technology Partner Group
RWS Enterprise Technology Partners
Trados Academic Partners
Trados Approved Trainers
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic Tridion Docs User Group
Tridion Docs Europe & APAC User Group
Tridion UK Meetup
Tridion User Group Benelux
Tridion User Group New England
Tridion User Group Ohio Valley
Tridion West Coast User Group
WorldServer User Group
MultiTerm Ideas
Passolo Ideas
Trados GroupShare Ideas
Trados Studio Ideas
Language Weaver Cloud Ideas
Language Weaver Edge Ideas
RWS Language Cloud TMS Ideas
RWS Language Cloud Terminology Ideas
RWS Language Cloud Online Editor Ideas
Managed Translation - Enterprise Ideas
TMS Ideas
WorldServer Ideas
Tridion Docs Ideas
Tridion Sites Ideas
LiveContent S1000D Ideas
XPP Ideas
Events & Webinars
To RWS Documentation
To RWS Support
Detecting language please wait for.......
I'm trying to find a regex that will be capable of adding a trailing space at the end of every segment in a file in Studio. Does anyone know of a regular expression that would do the trick? Thanks!
Find what: ^(.*)$Replace with: $1#where # should be replaced with a space (blank)should work.Caveat: For some reason, Studio 2019 Find/Replace handles the first segment incorrectly and so must be corrected…
If you want to avoid having more than one space at the end of the segment in case there is already one, try this (without the quotes):
Thank you very much for this suggestion, Raphaël. I didn't need it this time, but I have copied it for future reference!
Find what: ^(.*)$Replace with: $1#where # should be replaced with a space (blank)should work.Caveat: For some reason, Studio 2019 Find/Replace handles the first segment incorrectly and so must be corrected manually.
The variant to skip any multiple spaces at the end of the string^(.*?)\s*$
A more efficient and simpler solution:(\S)$with the above Replace string
This adds a space to be last character of the segment, unless it is already a whitespace
The reverse situation, namely to remove all trailing spaces, can be matched with the regex(\s*)$with a null (empty) Replace string