', # :) ':|', # :| ':(', # :( ':(', # ;( ':D', # :D ':o', # :o ';)', # ;) ':p', # :p ':/', # :curve: ':!:', # :!: ':lol:', # :lol: ':evil:', # :evil: ':mad:', # :mad: ':roll:', # :roll: ':cool:', # :cool: ':redface:', # :redface: '\1', # [b] '\1', # [i] '\1', # [u] '\1', # [s] '

\1

', # [center] '\3', # [url=] '\1', # [url] '\2', # [color] (hex) '\2', # [color] (text) '', # [list] '
  • \1
  • ', # [*] '
    Quote:
    \1
    ', # [quote] '
    \1 wrote:
    \2
    ', # [quote=] '
    Code:
    \1
    ', # [code] '
    ', # \n '', # \r '\\1\\2', ); return preg_replace($pattern, $replace, $content); } function StripBBCode($content) { $pattern = array( '/\\n/', # \n '/\\r/', # \r '/\[b\](.*?)\[\/b\]/is', # [b] '/\[i\](.*?)\[\/i\]/is', # [i] '/\[u\](.*?)\[\/u\]/is', # [u] '/\[s\](.*?)\[\/s\]/is', # [s] '/\[url=(.*?)\](.*?)\[\/url\]/is', # [url=] '/\[url](.*?)\[\/url\]/is', # [url] '/\[img](.*?)\[\/img\]/is', # [img] '/\[color=(.*?)\](.*?)\[\/color\]/is', # [color] ); $replace = array( '', # \n '', # \r '\1', # [b] '\1', # [i] '\1', # [u] '\1', # [s] '\2', # [url=] '\1', # [url] '', # [img] '\2', # [color] ); return preg_replace($pattern, $replace, $content); } ?>