From 96a09676bc9baf7b4dc0fcfa20e3ae79bb81d826 Mon Sep 17 00:00:00 2001 From: sunasaji <45969150+sunasaji@users.noreply.github.com> Date: Thu, 27 Dec 2018 03:37:59 +0900 Subject: [PATCH] Fix regular expression to avoid unexpected matching --- vrc_world_user_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrc_world_user_checker.py b/vrc_world_user_checker.py index eb19c7e..36265ab 100644 --- a/vrc_world_user_checker.py +++ b/vrc_world_user_checker.py @@ -19,7 +19,7 @@ def main(): match=re.search('([0-9\.]+ [0-9:]+).+Joining or Creating Room: (.+)',line) if match != None: output_file.write(match.group(1) + " World: " + match.group(2) + "\n") - match=re.search('([0-9\.]+ [0-9:]+).+OnPlayerJoined (.+)',line) + match=re.search('([0-9\.]+ [0-9:]+).+\[NetworkManager\] OnPlayerJoined (.+)',line) if match != None: output_file.write(match.group(1) + " User: " + match.group(2) + "\n")