ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Проверка правильности mac адреса
Date: Mon, 18 Apr 2005 18:23:04 +0900
Message-ID: <42637C78.4040706@altlinux.ru> (raw)
In-Reply-To: <200504180746.07575.n_list@mail.ru>

[-- Attachment #1: Type: text/plain, Size: 760 bytes --]

Александр Новоселов пишет:
> В сообщении от Понедельник 18 Апрель 2005 07:16 Mike Lykov написал(a):
> 
>>В сообщении от Понедельник 18 Апрель 2005 01:20 Александр Новоселов написал:
>>
>>>Внимание вопрос: как в скрипте проверить "правильность" мак адреса, чтобы
>>>в нем были только шестнадцатеричные знаки 1..F
>>
>>/[0-9A-F]+/
>>
>>использовать в любом скрипте, использующем регулярные выражения.
> 
> 
> не всё так просто... там же ещё разделители, да еще через два знака...
> в общем если два двоеточия или не полностью написан мак, тоже не работает. 
> Надо както проверить мак целиком... Соответствует ли установленной "форме"
> 
> 76:AB:C5:: 
/([0-9A-F]{2}:){5}[0-9A-F]/

Что-то вроде этого:

([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-04-18  9:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-17 20:20 Александр Новоселов
2005-04-18  3:16 ` Mike Lykov
2005-04-18  3:46   ` Александр Новоселов
2005-04-18  9:23     ` Ivan Fedorov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42637C78.4040706@altlinux.ru \
    --to=ns@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git