Ben örneğin PHP bir dize var $string = "Blabla [word]";
$string = "Blabla [word]";
I would like to filter the word between the '[' brackets. The result should be like this $substring = "word";
$substring = "word";
teşekkürler
Deneyin:
preg_match ('/\[(.*)\]$/', $string, $matches); $substring = $matches[1]; var_dump ($substring);