I am fairly new to regex and I'd greatly appreciate some guidance.
I have quite a huge text file and I'd like to bookmark the lines of my keywords but only their first instances.
For example:
Apples are delicious.
I like turtles.
He is tall.
She is beautiful.
Go to hell!
Turtles are smart.
These are the world's most beautiful buildings.
Apples are good for your health.
The Hungarian flag is a horizontal tricolour of red, white and green.
Turtles are reptiles.
You are very clever.
Hungarian is a difficult language.
Bananas and apples are usually cheap.
If I make a regex (apple|turtle|hungarian), I get 8 bookmarked lines but in the above-mentioned example,
I only need the first occurences, so I want to bookmark only the following sentences:
- Apples are delicious.
- I like turtles.
- The Hungarian flag is a horizontal tricolour of red, white and green.
Is there a way to do this?
Thank you in advance.