I hope this is the most up to date version. You don't have to import database every time, to check if everything is parsed right. Regexes are used always on 'just after import' version of database.
Preparse regex:
content = content.replace(/<!-- m --><a class="postlink" href="(.*)">.*<\/a><!-- m -->/g, '$1');
content = content.replace(/<!--.*?--><img src="\{SMILIES_PATH\}\/.+?" alt="(.+?)" title=.+?\/><!--.*?-->/g, ' $1 ');
content = content.replace(/\[(.*?):\w+\]/g, "[$1]");
content = content.replace(/\[(\/\w+):\w+\]/g, "[$1]");
Postparse regex:
content = content.replace(/\\\[/g, '[');
content = content.replace(/\\\]/g, ']');
content = content.replace(/\@"(\w+)?" said:/g, '@$1 said:');
Bonus - Selenium IDE for Firefox script, which makes forum private You need sideflow extension to use it. Use it at categories page in ACP to see how it works.
http://pastebin.com/UdaT0FQF <-- deprecated since v0.7.0