====== RegEx ====== Regular Expressions [[http://de.selfhtml.org/perl/sprache/regexpr.htm]] ===== PHP ===== Aktuell: preg_replace z.B: meine Events: $string_new = preg_replace("#(Passwort |Passwort: |PW: |PW|SK:)+([0-9A-Za-z]{6})#", "\\2", $string_new); // Make link to rechnung /invoice if ($this->job_id > 0) $string_new = preg_replace("#(RECH:|RECH|INVOICE)+([0-9,]+)#", "Rechnung über \\2 EU", $string_new);