I have to do a ton of edits where the only change is to delete a space in between a number character and an anchor object.
As an example, what I'm working with looks like this:
and I want it to look like this:
However, it's not always 32. It could be 76, 88, 105, or any number.
I tried using Find and Replace to find this:
and replace it to
However, that literally changes the text to ^9^a.
Is there anyway to change the format to remove the space, but keep the values?
You need to use the GREP tab.
You can search for (\d)\s(~a) and replace with $1$2 or you can search for (?<=\d)\s(?=~a) and replace with nothing.
In the first case you are looking for any digit, any white space, and the anchored object marker and replacing with the digit and marker, deleting the space. In the second you are looking for any space that is preceded by a digit and followed by an anchored object marker and replacing it with nothing, which deletes it.