sup Posted July 2, 2010 Share Posted July 2, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/206501-preg-match-regex/ Share on other sites More sharing options...
Adam Posted July 2, 2010 Share Posted July 2, 2010 Try: /(.+?) posts/ Quote Link to comment https://forums.phpfreaks.com/topic/206501-preg-match-regex/#findComment-1080182 Share on other sites More sharing options...
sup Posted July 2, 2010 Author Share Posted July 2, 2010 Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/206501-preg-match-regex/#findComment-1080199 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.