how do I strip off all white space and \[code\] \[/code\]?I have this as a input in a wrapper I create,\[code\] bold \[/code\]so before turning the text to bold, i want to strip off all white spaces and  , and turn it into \[code\]bold\[/code\],\[code\]$this->content = preg_replace("/\[(.*?)\]\s\s+(.*?)\s\s+\[\/(.*?)\]/", "[$1]$2[/$3]", $this->content);\[/code\]but it does not work! can you help please?