How can I remove string from between square brackets and the brackets themselves with regex?
Let me clarify, is not that case: [some text] but this one:
Lorem ipsum[:en]Some text[:]
After "str_replace" the variable should contain just:
Lorem Ipsum
Someone can help me? I'm going crazy :)
Try this to remove between [] from string.
OUTPUT
DEMO