<?php
$message = "<@204982556188213248> remind me about Things that make me go pop 12123 at 2016-03-01 08:00 GMT remind me then";
preg_match('~(at\s)(.*)\sremind~', $message, $matches);
var_dump($matches);
array(3) {
[0]=>
string(54) "at make me go pop 12123 at 2016-03-01 08:00 GMT remind"
[1]=>
string(3) "at "
[2]=>
string(44) "make me go pop 12123 at 2016-03-01 08:00 GMT"
}
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
array(3) {
[0]=>
string(54) "at make me go pop 12123 at 2016-03-01 08:00 GMT remind"
[1]=>
string(3) "at "
[2]=>
string(44) "make me go pop 12123 at 2016-03-01 08:00 GMT"
}