Code: Alles auswählen
/^(http://www{1}|www{1}).{1}(.*).{1}(de|com)/i
danke
Code: Alles auswählen
/^(http://www{1}|www{1}).{1}(.*).{1}(de|com)/i
Code: Alles auswählen
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);
Aber ich finde er hat recht! Ich meine, wenn das jeder so macht, dann sind hier bald 2000angefangene Threads, sdie keiner weiterführt, weil er lieber nenen euen eröffnet! Wenn du ort angefangen hast, dann mach doch bitte dort weiter!witzigerkiller hat geschrieben:weil ich da nicht weitergemacht habe. fertig.
Hatte ich dich nicht schonmal darauf hingewiesen, dass du dich bitte aus meinen Themen raushalten solltest, und ich mich aus deinen auch raushalte? Also bitte halte dich daran.