- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?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('/\[.+\]/U', $prTitle, $matches);
var_dump($matches);