Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update game log regex #11

Open
nfreader opened this issue May 30, 2019 · 0 comments
Open

Update game log regex #11

nfreader opened this issue May 30, 2019 · 0 comments

Comments

@nfreader
Copy link
Owner

New regex:
\[(\d{4}-\d{2}-\d{2} )?(\d{2}:\d{2}:\d{2})(\.\d{3})?\] ?(\w*): (.*)

Matches HH:MM:SS and (optionally) YYYY-MM-DD at the start and milliseconds at the end of the timestamp.

if(!preg_match("/\[(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3})] (\w*): (.*)/", $line, $tmp)) continue;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant