<?php
//$prTitle = '[Validator] Fix the locale validator so it treats a locale alias as a valid locale';
$prTitle = '[PropertyAccess] [RFC] [WIP] Allow custom methods on property accesses';
preg_match_all('/\[.+\]/U', $prTitle, $matches);
var_dump($matches);
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(1) {
[0]=>
array(3) {
[0]=>
string(16) "[PropertyAccess]"
[1]=>
string(5) "[RFC]"
[2]=>
string(5) "[WIP]"
}
}