the text I work with has marked each words or sentences that should be a marginalia with ##before and after##
as in:
Edi nos di occus aceaqui blam rerorent eumetur aut eaquid qui ut velibus quid elecab iust, sinit, voluptatur sam ut eum ##I'm a maginalia## dolupta volupti orepudita deruntiur? Dus, sequam, se doluptatem quis antotatquid que excepudi ##and I'm a pretty marginalia## comnis et res nestrum ex ent.
I'm using a tiny script that moves them to their designated places when selected. (So I have to select every single supposed marginalia separately to use the script on each selection.)
My problem is: If there is only one marginalia in a paragraph ##.+## works just fine but if there are two ore more occurences, this selects all text inbetween the first and the last ## in the paragraph.
as in:
Edi nos di occus aceaqui blam rerorent eumetur aut eaquid qui ut velibus quid elecab iust, sinit, voluptatur sam ut eum ##I'm a maginalia## dolupta volupti orepudita deruntiur? Dus, sequam, se doluptatem quis antotatquid que excepudi ##and I'm a pretty marginalia## comnis et res nestrum ex ent.
Is there a way with GREP to find the next occurence of ## after any other text inbetweenthe first ##?