|
Re: lug-bg: POSIX regex
- Subject: Re: lug-bg: POSIX regex
- From: Огнян Кулев <ogi@xxxxxxxxxxxxxxxx>
- Date: Fri, 19 Sep 2003 10:01:47 +0300
- Organization: Факултет по Математика и Информатика
sheib wrote:
май това е posix еквивалента :
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.([0-9]{1,3}
obache tova vkluchva "adresi" ot tip 0.932.857.401.
opitai da polzvash neshto takova:
(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])
\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)
\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)
\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])
ne che e idealno, no imo e po-blizo do istinata :)
А може ли да изключваш broadcast и network адресите? ;-)
И още един прост вариант:
[0-9]{1,3}(\.[0-9]{1,3}){3}
Поздрави
--
Огнян Кулев <ogi@{fmi.uni-sofia.bg,fsa-bg.org,jabber.net}>
7D9F 66E6 68B7 A62B 0FCF EB04 80BF 3A8C A252 9782
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|