Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> regexp
deniol13
post
Post #1





Grupa: Zarejestrowani
Postów: 190
Pomógł: 2
Dołączył: 30.11.2009

Ostrzeżenie: (10%)
X----


witam, proszę o regexpa żeby sprawdzić czy podany string ma formę prawidłowego adresu url czyli np http://strona.pl, http://strona-strona.pl, http://strona.strona.pl, lub http://www.strona.pl, po prostu prawidlowy adres url
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
flashdev
post
Post #2





Grupa: Zarejestrowani
Postów: 812
Pomógł: 117
Dołączył: 2.12.2008

Ostrzeżenie: (10%)
X----


proszę


--------------------
Go to the top of the page
+Quote Post
Quantum
post
Post #3





Grupa: Zarejestrowani
Postów: 450
Pomógł: 84
Dołączył: 27.11.2008
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


nie lepiej użyć funkcji filter_var z flagą FILTER_VALIDATE_URL ?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 04:26