Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.