How can I detect redundant leading/trailing space?

I found that these spaces cannot be detected in current Xbench, but this is something that we commonly encounter but hard to find with the naked eyes. Is there any way we can verify this in Xbench?

Thank you.

1 Like

Hi Sally,

There is a search template for it in Xbench:


Simply replace ^[[:space:]] by [[:space:]]$ to search for trailing space.


Historically, Xbench has not loaded leading and trailing spaces.

From Xbench 3.0 build 1434, leading and trailing spaces are loaded. A new feature, Leading/Trailing Mismatch, has been added to detect those segments where source and target leading and trailing spaces do not match.

You can download the most recent build from


1 Like