1 Reply Latest reply on Feb 15, 2012 8:50 AM by [Jongware]

    Search exponent or subscript in a document

    cnadal38

      Hi !

       

      Do you know how to find all exponent and subscript characters in a document ?

       

      I need to circle those caracteres by html tags (<e> or <inf>) in order to extract contents of documents in html.

       

      Maybe using Find > Text or Grep ?

       

      Thanks.

       

      Cyril

        • 1. Re: Search exponent or subscript in a document
          [Jongware] Most Valuable Participant

          GREP find -> Find Format (you might need to click the "More options" button) -> Basic Character Formats -> Position -> Superscript.

           

          Put

           

          .+

           

          in the Find What field -- this will find any text in superscript. Put this in the Replace With field:

           

          <e>$0</e>

           

          -- where <e> and </e> are your own codes, and "$0" simply means 'that which was just found". Repeat for Subscript. It will write these codes in superscript, resp. subscript, as well but that should not be a problem if you are extracting plain text only.

           

          By the way, <e> is not the code for "exponent".