Skip to main content
Participant
January 19, 2018
Answered

Using GREP styles to find all of (x) that doesn't result in (y), & replace with other text

  • January 19, 2018
  • 1 reply
  • 251 views

I'm trying to find a way to locate all double spaces (inserted between placeholders in a data merged document) that do not appear at the end of a paragraph line (i.e. that do not result in effectively a soft line break), in paragraphs of text spanning several paragraph lines, and replace said double spaces with "(space)|(space)".

Is this at all possible to achieve using GREP styles & if so, can someone explain how to do so please?

Any help would be very much appreciated. Thanks.

This topic has been closed for replies.
Correct answer Willi Adelberger

It is not possible with GREP styles. It is possible with Find & Replace, there is a Preset available which does exactly this.

1 reply

Willi Adelberger
Community Expert
Willi AdelbergerCommunity ExpertCorrect answer
Community Expert
January 19, 2018

It is not possible with GREP styles. It is possible with Find & Replace, there is a Preset available which does exactly this.