I am having some troubles getting some regex to work to remove some text, I need [text] removing from [text][maybehere]anytext.
So basically the first set of [] and whatever is in them. The rest of the text can contain anything including spaces and may have another set of [].
I have this: /\[.*\]/ but it is removing all of the brakets and contents.
I am using PHP
Any ideas?
Note the 4th parameter (replace limit) in
preg_replace: