Need syntax for the CleanUp Tasks plugin to shrink consecutive spaces
Thread poster: kd42
kd42
kd42
Estonia
Local time: 13:19
English to Russian
Oct 19, 2023

Good day,

I have a document with double and triple spaces, I tried typing two spaces in the "Find" field and one space in the "Replace with" field, but I get multiple error messages.

Is there a regex syntax which would mean "two and more spaces", like Word's [^32]{1;}?

A side note:
=========
There is a very close topic with very good answers and answerers where I would rather continue the discu
... See more
Good day,

I have a document with double and triple spaces, I tried typing two spaces in the "Find" field and one space in the "Replace with" field, but I get multiple error messages.

Is there a regex syntax which would mean "two and more spaces", like Word's [^32]{1;}?

A side note:
=========
There is a very close topic with very good answers and answerers where I would rather continue the discussion [ https://www.proz.com/forum/trados_support/351299-need_to_delete_all_line_breaks_in_source.html ], but Proz forums don't have a good notification system. I posted a question about this drawback recently, this is a good example of the forums' imperfection.
Collapse


 
Stepan Konev
Stepan Konev  Identity Verified
Russian Federation
Local time: 13:19
English to Russian
Regex Oct 20, 2023

Weirdly, replacing two spaces with one space works fine for me.
However, you can also use the following regular expression:
Find what: \s{2,}
Replace with: just type a single regular whitespace here


[Edited at 2023-10-21 09:32 GMT]


Dan Lucas
expressisverbis
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Need syntax for the CleanUp Tasks plugin to shrink consecutive spaces







Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »
TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »