I am trying to extract a string between two patterns from another string in C++.
Example of input: “C++ is not that easy”
Pattern1: “C++”
Pattern2: “that”
Result: ” is not “
I would like to loop this operation to extract all matching strings from binary file later.
The best way for this is to use regular expressions.
You can read more about it here