RegEx

PHP

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);
 
Nach oben
regex.txt · Zuletzt geändert: 2024/02/29 13:36 von 127.0.0.1
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp