I have a noob question.
My java project analyzes text files.
There are three ways that the data can appear:
1. Search-term-A: data-to-collect-A
2. data-to-collect-B, search-term-B
3. data-to-collect-C@search-term-C
I manage to collect all relevant lines by finding the search term inside. I did this by implementing grep in my app.
But I don’t know how to extract the three data-to-collect parameters.
Thanks,
Andy.
i’m assuming you have following text in your.txt file
Code is