This site uses cookies.
Some of these cookies are essential to the operation of the site,
while others help to improve your experience by providing insights into how the site is being used.
For more information, please see the ProZ.com privacy policy.
Replace regular space before or after all tags with a non-breaking space - any Regex solutions?
Thread poster: LEXpert
LEXpert United States Local time: 01:34 Member (2008) Croatian to English + ...
Dec 26, 2022
I have a ton of high matches where the only difference from the TM is that parts of each segment are bolded and surrounded by tags, with a non-breaking space added before and after each tag. Surely there must be some way to replace the spaces all at ones?
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
Stepan Konev Russian Federation Local time: 09:34 English to Russian
Regex
Dec 26, 2022
Find what: [whitespace](<.*?>) Replace with: [nbsp]$1 To type a nbsp press and hold Alt and type 0160 on the numpad. Also remember to check the box 'Search within tags'
[Edited at 2022-12-26 22:22 GMT]
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
LEXpert United States Local time: 01:34 Member (2008) Croatian to English + ...
TOPIC STARTER
Works like a charm!
Dec 26, 2022
Thank you Stepan! This is exactly what I need.
Subject:
Comment:
The contents of this post will automatically be included in the ticket generated. Please add any additional comments or explanation (optional)
The leading translation software used by over 270,000 translators.
Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop
and cloud solution, empowering you to work in the most efficient and cost-effective way.
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value