Hi guys,
could you give me some advice on RegEx?
I just upgraded to KM9 and stumbled upon RegEx for the first time (whole new world of possibilities ) After reading a few tutorials and getting confused I decided to ask the ninjas in this group, while I am beginning to learn.
What I would like to do (with RegEx?)
I would love to find a certain text part in larger texts but the simple search and lookback does not do the job.
Example text:
Main Idea #1
Great: Everything (examples...)
Not so great: Only one thing (examples)
Main Idea #2
Great: Everything (examples...)
Not so great: Only one thing (examples)
Main Idea #3
Great: Everything (examples...)
Not so great: Only one thing (examples)
What I would like to filter out
Only the part "Only one thing (examples)" of Main Idea #2.
So I would need a expression that does:
- Look for "Not so great: "
- Make sure it's the one after the text "Main Idea #2"
- Copy everything after "Not so great: " up until the text "Main Idea #3"
- Put it into the clipboard
Thanks in advance for your advice. I will look into several other RegEx tutorials in the meantime.