Hej,
Håller på att sliter mig i håret med följande:
Har denna text (hand historia för poker):
[-------------------------------------------------------------------------------------------]
** Game ID 1316231597 starting - 2007-04-10 14:59:41
** Gutshot Holdem [Hold 'em] (25.00|50.00 No Limit - Cash Game) Real Money- FowlersFan sitting in seat 1 with $3098.00
- A_Poker_Punk sitting in seat 2 with $3422.00 [Dealer]
- I_Want_Chips sitting in seat 3 with $3225.00
- Cashman66 sitting in seat 4 with $1350.00
- I_Tilt_Often sitting in seat 5 with $2975.00
- Super_Hero sitting in seat 6 with $2000.00 [Sitting out]I_Want_Chips posted the small blind - $25.00
Cashman66 posted the big blind - $50.00
I_Tilt_Often called - $50.00
FowlersFan folded
A_Poker_Punk called - $50.00
I_Want_Chips called - $50.00
Cashman66 checked** Dealing the flop: 9 of Clubs, 2 of Clubs, 3 of Hearts
I_Want_Chips checked
Cashman66 checked
I_Tilt_Often bet - $100.00
A_Poker_Punk folded
I_Want_Chips folded
Cashman66 folded
I_Tilt_Often mucks:
I_Tilt_Often wins $298.00 from the main potEnd of game 1316231597
[-------------------------------------------------------------------------------------------]
Jag vill plocka ut följande bit:
- FowlersFan sitting in seat 1 with $3098.00
- A_Poker_Punk sitting in seat 2 with $3422.00 [Dealer]
- I_Want_Chips sitting in seat 3 with $3225.00
- Cashman66 sitting in seat 4 with $1350.00
- I_Tilt_Often sitting in seat 5 with $2975.00
- Super_Hero sitting in seat 6 with $2000.00 [Sitting out]
Det jag har kört med är:
/-(.+)(with \$[\d.]+)\r?\n\r?\n/
Problemet med just denna hand är att den slutar ju inte med "with $00.00" utan "[Sitting out]" och det skulle kunna vara "[Dealer]".
Så då trodde jag att det skulle funka med typ:
/-(.+)((with \$[\d.]+)|\])\r?\n\r?\n/
Men icke sade nicke...varför inte?