Maybe I am completely overlooking this feature but it would be nice to be able to search for the last word in a line. Is it possible?
I am running this script that takes references out of the flow and places them in an anchored frame.
This is sometimes causing some trouble and general weirdness.
If the last word in a line is preceded by an anchored object some of that last word gets pushed out of the text frame. Not every time but enough to be quite annoying. The solution right now is to manually look for these occurences and move the space preceding the anchored object after the anchored object. Then everything is fine again.
Please see attached screenshots of before and after moving the space:
Before:

After:

A weird bug right?
So my question now is if a grep search can find a space followed by an anchor marker and the last word in a line and swap the space and the anchor marker around.
I appreciate any thoughts on this.