- file_get_contents: documentation ( source)
- preg_replace: documentation ( source)
<?php
echo PCRE_VERSION;
preg_replace('#\[((br|hr|clear|col)[^]]*)]#is', '[$1]*[/$2]', file_get_contents('https://gist.githubusercontent.com/codemasher/c310a48d46974d003b5f/raw/96c849c0b9cb43bb0f82497a08b970db734c7e81/bcode.txt'));