Regular Expressions
Aktuell: preg_replace
z.B: meine Events:
$string_new = preg_replace("#(Passwort |Passwort: |PW: |PW|SK:)+([0-9A-Za-z]{6})#", "<a href=\"http://www.foto-und-kind.de/schatzkiste/show_pictures.html?key=\\2\" target=\"_blank\">\\2</a>", $string_new);
// Make link to rechnung /invoice
if ($this->job_id > 0)
$string_new = preg_replace("#(RECH:|RECH|INVOICE)+([0-9,]+)#", "<a href=\"".klink("../job/invoice.php", "&jobnumber=".$this->job_id."&key=\\2\"")." target=\"_blank\">Rechnung über \\2 EU</a>", $string_new);