Minule jsem chtěl ten časovaný kvíz, no, teď mám jiný problém.
Kdysi dávno, dááávno, tu některý z guru (CommanderZ? nebo neee... ale na jmeno si nevzpomenu) psal jakýsi regulérní výraz, který měl měnit URL na odkaz.
http:// [a-z0-9\-] . ?[a-z0-9\-] . (eu|cz......)
proste neco hrozne dlouhyho, byly tam vyjmenovany i vsechny domeny 1. radu... proti lidem, kteri nepisi za teckou mezeru apod...
najde nekdo, pripadně nemate to nekdo ulozene?
muzete mi rikat "w3m dearchivator" .)))
Fórum › Offtopic
Hledám hledače (opět příspěvek z cca 2008)

Edit: Pardon, tak jsem to našel....
$z = "((http://)?(www\.|[a-z0-9_\-]+\.)?([a-z0-9_\-]+)\.(eu|sk|com|net|org|biz|info|name|cz|de|ru|ac|ag|am|as|be|bz|cc|cd|ch|cn|at|eud\.ws|com\.cn|net\.cn|org\.cn|gs|in|co\.in|net\.in|org\.in|firm\.in|gen\.in|ind\.in|io|jp|la|li|lt|lv|ms|nu|sg|com\.sg|sh|tc|tk|to|tv|idv\.tw|com\.tw|org\.tw|co\.uk|me\.uk|org\.uk|vg|ws|com\.ws|net\.ws|org\.ws|gov\.ws)((/([a-z0-9_\-]*|\.|\.\.))*)([a-z0-9_\.\-\?=%&]*)?)";
$do = '<a href="http://\\3\\4.\\5\\6\\9" style="color: #333399;">\\3\\4.\\5</a>';
$vysledek = eregi_replace($z, $do, $text);
a sláva Zelenáčovi:)

Přidej příspěvek
Toto téma je starší jak čtvrt roku – přidej svůj příspěvek jen tehdy, máš-li k tématu opravdu co říct!
Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku
×Vložení zdrojáku
×Vložení obrázku
×Vložení videa
Aktuálně jsou podporována videa ze serverů YouTube, Vimeo a Dailymotion.
×






























































Uživatelé prohlížející si toto vlákno
Uživatelé on-line: 0 registrovaných, 20 hostů
Podobná vlákna
HLEDÁM: IT DEVELOPER [příspěvek na dopravu popř. ubytování] — založil Marcela Kubicová
Výpadek ODBC cca po 10 hodinách — založil flouwie
Kódujem z PSD do HTML+CSS za 400 Kč (cca. 16€) — založil Tomáš Kóder
Citovat prispevek — založil adka
Ikonky (cca 36x36) sportů a lidí při sportu — založil null_while
Moderátoři diskuze