Jump to content

Preg match regex


sup

Recommended Posts

Hi all

 

I am trying to extract the following bold names only from the code below

 

boisbois posts the small blind of 10

michael bass posts the big blind of 20

 

It's one huge text, with no line breaks so I cannot count lines :(

 

I have tried doing it with preg_match and RegExBuddy, for example : /\)\ (.*)\ /posts the small blind/

But it gives nothing back. Can some1 help me out?

 

 

Full Tilt Poker Game #12352499014: $5 + $0.25 Heads Up Sit & Go (92219476), Table 1 - 10/20 - No Limit Hold\'em - 15:58:46 ET - 2009/05/21
Seat 1: michael bass (1,360)
Seat 2: boisbois (1,640)
boisbois posts the small blind of 10
michael bass posts the big blind of 20
The button is in seat #2
*** HOLE CARDS ***
Dealt to boisbois [Qc Kd]
boisbois raises to 40
michael bass raises to 120
boisbois calls 80
*** FLOP *** [2c Ts Ad]
michael bass checks
boisbois checks
*** TURN *** [2c Ts Ad] [6c]
michael bass checks
boisbois checks
*** RIVER *** [2c Ts Ad 6c] [As]
michael bass checks
boisbois checks
*** SHOW DOWN ***
michael bass shows [Tc Ah] a full house, Aces full of Tens
boisbois mucks
michael bass wins the pot (240) with a full house, Aces full of Tens
*** SUMMARY ***
Total pot 240 | Rake 0
Board: [2c Ts Ad 6c As]
Seat 1: michael bass (big blind) showed [Tc Ah] and won (240) with a full house, Aces full of Tens
Seat 2: boisbois (small blind) mucked [Qc Kd] - a pair of Aces

Link to comment
https://forums.phpfreaks.com/topic/206501-preg-match-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.