Hello! I'm from Viet Nam! I have a character: [p=20, 30, left] content [/p] With php language or javascript, replace ==> [p] content [/p] Thanks!
With string [p=20, 30, left] content [/p] can use str.replace (js) or preg_replace! Thanks support!
Eh, I don't understand what you are trying to do.
Maybe...
$s = preg_replace('/\[p=[^]]*\]/', '[p]', $s);
...will work.
paulnaj;10959142 wrote:Maybe...$s = preg_replace('/\[p=[^]]*\]/', '[p]', $s);...will work.
That great! Thanks you very much!