Wednesday, October 20, 2010

PHP Regular Expression Remove BBCODE

How to remove BBCODE from a string ?
 
<?php 
$String = "[b][color=#0000ff]TEST[/color][/b]";
$regex = '|[[\/\!]*?[^\[\]]*?]|si';
$String = preg_replace($regex, '', $String);
print $String."\n";
?>

Proxmox installation display out of range

Reference:  https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/