Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> regexp, sprawdzanie email
Apo
post
Post #1





Grupa: Zarejestrowani
Postów: 426
Pomógł: 1
Dołączył: 2.10.2005

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


Witam
Pisze regexp do sprawdzania email no i mam problem:
  1. REGEXP '^[[:alnum:]]+@[[:alpha:]]\.[a-z]*{2,4}$';


No i problem jest taki, że nie sprawdze tego warunku [a-z]*{2,4}$ no i w wyniku
taki email przechodzi: email@email.pllllll

Z góry thx za poprawnienie
Go to the top of the page
+Quote Post
crash
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 196
Pomógł: 2
Dołączył: 17.01.2004
Skąd: Sosnowiec

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


A czemu nie zdecydujesz sie na: [a-z]* albo na: [a-z]{2,4} ?
Go to the top of the page
+Quote Post
Apo
post
Post #3





Grupa: Zarejestrowani
Postów: 426
Pomógł: 1
Dołączył: 2.10.2005

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


aaaa bez * działa (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
thx crash (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 9.10.2025 - 18:18