test - 1-к квартира, 50 кв.м., ул. Черняховского, 3 (64-71 микрорайон) - Блог ремонта - Недвижимость и ремонт во Владивостоке - Site
Новости Новостройки Административные Ипотека
Строящиеся новостройки Сданные новостройки
Административные здания Торговые здания Земля многодетным семьям Аукцион нежилых помещений Здания социального и культурного назначения Аукцион нежилых помещений ДВФУ

1-к квартира, 50 кв.м., ул. Черняховского, 3 (64-71 микрорайон)

31.12.2012 0 1


Over the years I have slowly developed a regular expression that validates MOST email addresses correctly, assuming they don't use an IP address as the server part. Currently the expression is:


I use this in several PHP programs, and it works most of the time. However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).

What's the best regular expression you have or have seen for validating emails?

I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


Загружаем комментарии...

Последние комментарии

    Оставить комментарий