Greetings, I have to remove any occurrence of text between brackets. For example:
Eg: [Text in brackets] Text outside brackets. The output would be: "Text outside brackets";
I tried to use the following Regex:
$string = "[Texto entre colchetes] Texto fora do colchetes";
$String = preg_replace("[\/(.*?)\]/",'',$string);
echo $string;
But I did not succeed.