Copy link to clipboard
Copied
This GREP expression is loaded in my InDesign file already. I don't know where it came from. Who put it there. But more importantly, what does it do??
\s(?=[–—"'\w[:punct:]]+$)
Copy link to clipboard
Copied
… associated to a "nobreak" char style to try to avoid a widow at the end of a para containing such a Grep style, nothing really interesting!
(^/) The Jedi
Copy link to clipboard
Copied
More relevant (and simpler):
\H+\h\H+$
(^/)
Copy link to clipboard
Copied
Thank you!
Would this also accomplish the same thing?
.{15}$
This is one I use intentionally. I just never knew what that other one was or where it came from.
Copy link to clipboard
Copied
Not exactly!
Sample (in french):
\H+\h\H+$ will give: "… faire une proposition indécente.", so maybe:
"… faire une
proposition indécente."
.{15}$ will give: "… faire une proposition indécente.", so maybe:
"… faire une propo-
sition indécente."
(^/)