I have problem with regex.
My string: "[312ds31spacer13d][TestWord]"
In PHP I'm using:
preg_replace('#\[(.*)spacer(.*)]# ', '', $myString);
And this removed the entire string. How to leave "[TestWord]"
?
I have problem with regex.
My string: "[312ds31spacer13d][TestWord]"
In PHP I'm using:
preg_replace('#\[(.*)spacer(.*)]# ', '', $myString);
And this removed the entire string. How to leave "[TestWord]"
?