What about:
FIND: \d+(~F)\d+
CHANGE TO: $1
Rick Gordon
------------------
On 8/14/13 at 10:09 AM -0400, William Adams wrote in a message entitled
"Re: [ID] GREPping digits":
>On Aug 14, 2013, at 10:00 AM, Ann_Camilla wrote:
>
>> I'm a complete novice where GREP is concerned. I have this book to do, about 600 pages and each page has half a dozen footnotes. For some reason InDesign wouldn't bring the footnotes in although I've rootled around in the Word document and can't understand why. I saved the Word doc as RTF. No footnotes at all. So I saved it as .docx and voil�, footnotes.
>>
>> But there's a very large 'but': in the text, InDesign has inserted the footnote number inside the existing footnote number. So, for instance, instead of having footnote (superscripted) 21, I have 2211. And so on.
>>
>> So I thought this was a job for GREP -- simple (I wish!). Find: \d(\d\d)\d -- Change to: $1 -- Find Format: Footnote Reference
>>
>> Well this can't be found apparently. I want to find these numbers and delete the first and 4th digit. That's all. Why won't InDesign help here?
>
>The superscripted footnote number doesn't register as digit(s), it's a ``Footnote marker'' --- instead use something like:
>
>\d*~F\d*
>
>but you can't (IME) replace the footnote back using GREP, so instead, you should assign a formatting which isn't used in the document to the digits and the footnote marker, then search for digits w/ that formatting and replace w/ nothing (and no formatting) deleting only the digits, leaving the footnote marker.
>
>William
>
>--
>William Adams
>senior graphic designer
>Fry Communications
>Sphinx of black quartz, judge my vow.
>
>--
>You received this message because you are subscribed to the Google Groups "InDesign talk" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to
indesign-tal...@googlegroups.com.
>To post to this group, send email to
indesi...@googlegroups.com.
>Visit this group at
http://groups.google.com/group/indesign-talk.
>For more options, visit
https://groups.google.com/groups/opt_out.
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW:
http://www.shelterpub.com