I have a file, each line holds a .
<div style="random properties" id="keyword1:string id:int">text</div>
<div style="random properties" id="keyword1:string id:int">text</div>
<div style="random properties" id="keyword2:string id:int">text</div>
<div style="random properties" id="keyword2:string id:int">text</div>
Can i with fscanf return a list of text and id for a matching keyword1 and keyword2?
You can simply read it with regex:
But if you want to read more about
regexplease go to http://en.cppreference.com/w/cpp/regex