Регулярные выражения на PHP

Discussion in 'PHP' started by mackberni, 2 Feb 2011.

Thread Status:
Not open for further replies.
  1. mackberni

    mackberni New Member

    Joined:
    7 Jan 2011
    Messages:
    19
    Likes Received:
    0
    Reputations:
    0
    подскажите регулярку для даты рождения типа ДД.ММ.ГГГГ
     
  2. Hack_ERR++

    Hack_ERR++ Member

    Joined:
    13 Aug 2009
    Messages:
    41
    Likes Received:
    9
    Reputations:
    0
    Code:
    preg_match_all("/[0-9]{2}[.][0-9]{2}[.][0-9]{4}/",$text,$result);
    только потом фильтровать результаты надо, т.к 95.52.6666 тоже за ДР будет принято
     
  3. Gifts

    Gifts Green member

    Joined:
    25 Apr 2008
    Messages:
    2,494
    Likes Received:
    807
    Reputations:
    614
    mackberni http://forum.antichat.ru/thread92492.html
     
    _________________________
Thread Status:
Not open for further replies.