Basically looking for an easy way to do this for example:-


I have a string such as below, and I want to find out if it contains
the string "won" (I need to know who won the game).
"Seat 4: My_poker_id (big blind) showed [Jh Ad] and won (3672) with Two Pairs, Eights and Fives, Ace high"

If there an easy way to do this?

To simplify it a little you can ignore the first part of the string and just use


"(big blind) showed [Jh Ad] and won (3672) with Two Pairs, Eights and Fives, Ace high"

points to note - the (big blind) bit might not be there, and "won" might not be
there at all and the strings might be as below.
As an example I would probably looking through the lines to find out who won.



Seat 1: playername1 (big blind) folded before Flop (didn't bet)
Seat 2: another layer folded on the Flop
Seat 3: anotherplayer3 collected 112
Seat 4: My_poker_id (big blind) showed [Jh Ad] and won (3672) with Two pairs, Eights and Fives, Ace high
Seat 5: yetanother (button) folded before Flop (didn't bet)
Seat 6: amdanother (small blind) folded before Flop (didn't bet)


I don't think there is an easy was to so it with sscanf?
Is there something else I should be using, or should I just search for 'w' then
'o' then 'n'.I guesss that would be easiest.