希望跟踪我的扑克锦标赛结果。 我玩的扑克网站用锦标赛数据保存.txt文件。 我想从.txt文件中导入特定数据。
文件构建如下:
PokerStars Tournament #910967412, No Limit Hold'em
Buy-In: $200.00/$15.00 USD
1178 players
Total Prize Pool: $235600.00 USD
Tournament started 2014/06/01 22:30:00 CET [2014/06/01 16:30:00 ET]
1: 1_conor_b_1 (United Kingdom), still playing
2: 1dönertasche (Germany), still playing
3: 23noraB (Austria), still playing
4: 2noll6 (Sweden), still playing
......
You finished in 97th place (eliminated at hand #116994480258).
我想提取这些数据:
这可以在不使用VBA的情况下实现吗?
过程是将新的txt文件中的数据保存到excel表中。
答案 0 :(得分:1)
您可以使用正则表达式(正则表达式):
tnumber: \#(\d*),
buy in: In:(.*) USD
Place: in (.*) place