Hi,
I'm trying to work out a Grep query to search for a particular sentence, e.g. the start of the third sentence.
This is because I wish to paste a different icon at the start of each sentence, a bit like different bullet points. Each type of “bullet” must always appear with its particular sentence. For example, a square with sentence 1. A triangle with sentence 2. A circle with sentence 3.
One thing that gives me hope of finding a solution is that there are always five sentences, separated by an end of paragraph r. However, some of the sentences have commas, and some have a forced line break n.
For example:
(SQUARE) This is the first sentence
(TRIANGLE) This is the second, which
breaks over two lines
(CIRCLE) This is the third
(CROSS) The fourth has some, commas, too
(OBLONG) The last sentence is here
The query would get me to the start of the chosen sentence, e.g. start of fourth sentence, where I can paste its specific icon. I then use the query again but slightly modified to get to the start of the, let's say, second sentence. And so on…
Is this possible with Grep?
Many thanks if you can help at all.