0 Replies Latest reply on Sep 12, 2018 10:32 AM by ameri91165842

    Replace only the selected short list of words by the full definition description from a Longer list

    ameri91165842

      Hello everybody

       

      I've a selected short list from definitions book

       

      And I want to add the full definitions description line to my selected definitions only

       

      for example this is a small part from my selected text which I put them between this symbols @@@ and %%%:

       

      @@@aedoeology%%%

      @@@agriology%%%

      @@@agrology%%%

      @@@agronomics%%%

      -------------------------------------------------------------------

       

      and this is the big list example:

       

      And I put at the end of each definition description this symbols ###

       

      @@@acarology%%%

      study of mites###

      @@@accidence%%%

      grammar book; science of inflections in grammar###

      @@@aceology%%%

      therapeutics###

      @@@acology%%%

      study of medical remedies###

      @@@acoustics%%%

      science of sound###

      @@@adenology%%%

      study of glands###

      @@@aedoeology%%%

      science of generative organs###

      @@@aerobiology%%%

      study of airborne organisms###

      @@@aerodonetics%%%

      science or study of gliding###

      @@@aerodynamics%%%

      dynamics of gases; science of movement in a flow of air or gas###

      @@@aerolithology%%%

      study of aerolites; meteorites###

      @@@aerology%%%

      study of the atmosphere###

      @@@aeronautics%%%

      study of navigation through air or space###

      @@@aerophilately%%%

      collecting of air-mail stamps###

      @@@aerostatics%%%

      science of air pressure; art of ballooning###

      @@@agonistics%%%

      art and theory of prize-fighting###

      @@@agriology%%%

      the comparative study of primitive peoples###

      @@@agrobiology%%%

      study of plant nutrition; soil yields###

      @@@agrology%%%

      study of agricultural soils###

      @@@agronomics%%%

      study of productivity of land###

      ------------------------------------------------------------------------------------------ --------------------

       

      NOW:

       

      How can I copy from the long list the full definition

       

      starting from its headword and taking the full line description until the symbols ###

       

      for only the selected text for my short list??????

       

      Now we have:

       

      First grep search:

      @@@.*?%%%

       

      to be replaced by:

       

      second grep search:

      @@@.*?%%%.*?####

                                                                        --------------------------------------------------------------

       

      Any Help I will be so thankful ....