这里我的格式如下:
Board: [Qd 6c Kc 8s Ad]
Player STACKS5143 does not show cards.Bets: 0.15. Collects: 0. Loses: 0.15.
Player REAGANBUSH84 does not show cards.Bets: 0.15. Collects: 0. Loses: 0.15.
Player HossaRules does not show cards.Bets: 0. Collects: 0. Wins: 0.
Player xrayoki does not show cards.Bets: 0. Collects: 0. Wins: 0.
Player sykoteekho shows: High card A [7c 9c]. Bets: 3.29. Collects: 0. Loses: 3.29.
*Player Autobot shows: One pair of Ks [Ks Jh]. Bets: 3.29. Collects: 6.54. Wins: 3.25.
Game ended at: 2018/2/19 15:59:26
我想在单词show
有办法做到这一点吗?
我在这里尝试了这个:(show.+ | \[.+\])
但似乎它正在拾取我不想要的其他括号。
任何想法都会很棒
谢谢,
答案 0 :(得分:1)
这里:
show.+\[([a-zA-Z0-9 ]+)\]
只会将“7c 9c”和“Ks Jh”匹配为“$ 1”组。
演示:here
只要不允许玩家在其用户名中加上括号,它甚至应该与名称中以“show”作为子串的玩家一起使用。