Copy link to clipboard
Copied
Hi,
I have a text where there is a space before endnote marker. I want to remove it from the whole book.
This is what I am entering in Find: (\{0020})(~U)
But this expression is not finding the match at all. I have attached a screenshot. Number 5 is in paranthesis which is an Endnote. There is a space before it. I want to remove the space before it.
In the Replace Text box I will enter $2. (wrongly tryped in the attachment as $2$1)
It aint working.
Any help will highly be appreciated.
Thanks.
This is an Adobe special. You're right, space+endnote marker doesn't find anything, whether you use \h, \s, \x{0020}, \x20, or even the literal space character. But ~F, the footnote marker, matches endnote markers as well. So you can look for \x20~F and remove the space.
Be careful with the note marker, you can't use it the way you did. To remove the space before note markers, use this:
Find what: \x{0020}(?=~F)
Change to: <leave empty>
(?=~F) is a lookahead: so the expression finds only t
...Copy link to clipboard
Copied
Should be
\x{0020}
See if that works
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Well that's for space - so it worked for me. Unless it's not normal space
try \h instead.
Copy link to clipboard
Copied
Hi Eugene
Thanks for your effort but for some reason it is not working. If there is a space after an endnote reference its capturing that but it is not capturing it before the endnote. I have enlarged and taken a screenshot for your information.
I am stuck. Manually will take lot of time.
Copy link to clipboard
Copied
This is an Adobe special. You're right, space+endnote marker doesn't find anything, whether you use \h, \s, \x{0020}, \x20, or even the literal space character. But ~F, the footnote marker, matches endnote markers as well. So you can look for \x20~F and remove the space.
Be careful with the note marker, you can't use it the way you did. To remove the space before note markers, use this:
Find what: \x{0020}(?=~F)
Change to: <leave empty>
(?=~F) is a lookahead: so the expression finds only the spaces that are followed by a note marker but leaves the note marker alone.
P.
Copy link to clipboard
Copied
Wow
Thanks so much Peter. It worked like a charm.
Thanks a ton.