Hi all,
Can someone help me with the correct code for the following.
I'm trying to extract and display specific data from the following 2 columns of text.
----- HOLE CARDS -----
dealt to Treeny [2h 5c]
mastoras folds
cantor calls £1
Vicky raises £2
dire wolf raises £3
Aceofbabe folds
Jim011 calls £3
Young006 folds
garnet folds
Treeny folds
Steven031 folds
cantor folds
Vicky calls £1
----- FLOP ----- [2s 5s 3c]
Vicky checks
dire wolf bets £1
Jim011 calls £1
Vicky calls £1
----- TURN ----- [2s 5s 3c][Qc]
Vicky checks
dire wolf bets £2
Jim011 calls £2
Vicky calls £2
----- RIVER ----- [2s 5s 3c Qc][Qd]
Vicky checks
dire wolf checks
Jim011 checks
----- SHOW DOWN -----
Vicky shows [As Kd] (A Pair of Queens, Ace high)
dire wolf shows [Ad Ah] (Two Pairs, Aces and Queens, Five high)
Jim011 mucks hand
dire wolf collected £19.50 from Main pot
----- SUMMARY -----
Total pot £20.50 Main pot £19.50 | Rake £1
Board [2s 5s 3c Qc Qd]
Seat 1 Young006 folded before Flop (didn't bet)
Seat 2 garnet (button) folded before Flop (didn't bet)
Seat 3 Treeny (small blind) folded before Flop (didn't bet)
Seat 4 Steven031 (big blind) folded before Flop (didn't bet)
Seat 5 mastoras folded before Flop (didn't bet)
Seat 6 cantor folded before Flop (didn't bet)
Seat 7 Vicky lost
Seat 8 dire wolf showed [Ad Ah] and won (£19.50) with Two Pairs, Aces and Queens, Five high
Seat 9 Aceofbabe folded before Flop (didn't bet)
Seat 10 Jim011 mucked
1. Who has the word 'raises' to right of their name between the HOLE CARDS and FLOP headings.
2. For the names extracted in part 1 above, display the data in the square brackets from the SHOWDOWN section.
So what I'm after from the data above would look like this:
Vicky [As Kd]
dire wolf [Ad Ah]
Sometimes the data in the SHOWDOWN section will not be there so some sort of check needs to be made for this I guess.
Thanks in advance
PS The columns end and start after each persons name
Can someone help me with the correct code for the following.
I'm trying to extract and display specific data from the following 2 columns of text.
----- HOLE CARDS -----
dealt to Treeny [2h 5c]
mastoras folds
cantor calls £1
Vicky raises £2
dire wolf raises £3
Aceofbabe folds
Jim011 calls £3
Young006 folds
garnet folds
Treeny folds
Steven031 folds
cantor folds
Vicky calls £1
----- FLOP ----- [2s 5s 3c]
Vicky checks
dire wolf bets £1
Jim011 calls £1
Vicky calls £1
----- TURN ----- [2s 5s 3c][Qc]
Vicky checks
dire wolf bets £2
Jim011 calls £2
Vicky calls £2
----- RIVER ----- [2s 5s 3c Qc][Qd]
Vicky checks
dire wolf checks
Jim011 checks
----- SHOW DOWN -----
Vicky shows [As Kd] (A Pair of Queens, Ace high)
dire wolf shows [Ad Ah] (Two Pairs, Aces and Queens, Five high)
Jim011 mucks hand
dire wolf collected £19.50 from Main pot
----- SUMMARY -----
Total pot £20.50 Main pot £19.50 | Rake £1
Board [2s 5s 3c Qc Qd]
Seat 1 Young006 folded before Flop (didn't bet)
Seat 2 garnet (button) folded before Flop (didn't bet)
Seat 3 Treeny (small blind) folded before Flop (didn't bet)
Seat 4 Steven031 (big blind) folded before Flop (didn't bet)
Seat 5 mastoras folded before Flop (didn't bet)
Seat 6 cantor folded before Flop (didn't bet)
Seat 7 Vicky lost
Seat 8 dire wolf showed [Ad Ah] and won (£19.50) with Two Pairs, Aces and Queens, Five high
Seat 9 Aceofbabe folded before Flop (didn't bet)
Seat 10 Jim011 mucked
1. Who has the word 'raises' to right of their name between the HOLE CARDS and FLOP headings.
2. For the names extracted in part 1 above, display the data in the square brackets from the SHOWDOWN section.
So what I'm after from the data above would look like this:
Vicky [As Kd]
dire wolf [Ad Ah]
Sometimes the data in the SHOWDOWN section will not be there so some sort of check needs to be made for this I guess.
Thanks in advance
PS The columns end and start after each persons name