[Quote]

    AZJIO
  • 17953
  • Longevity: 5 years 6 months
  • Posts: 1216
  • REPUTATION:127

    [+] [-]
[0-9][0-9][0-9]
красивее и читабельнее так (если я правильно понимаю что это рег.выр.):
\d{3}
как-то так:
\A\d{3}\.\d(?:\.\d)?(?![brse]+)\z
если многострочный текст:
^\d{3}\.\d(?:\.\d)?(?![brse]+)$
или так если это html-код:
(?<=>)\d{3}\.\d(?:\.\d)?(?:[^brse<]+)(?=<)

[Quote]

    JuraAD
  • 28398
  • Longevity: 2 years 2 months
  • Posts: 65
  • REPUTATION:24

    [+] [-]
+ - "один или более" {1,}
? - "ноль или один" {0,1}
* - "ноль или более" {0,}
Код: \d{3}
строго - 3
в суть не вникал... -))) есть еще флаги, где буквы - не мешает применить "i" (в некоторых реализациях "I" - sed)

Page 9 of 9


Display posts:    

Current time is: 24-Sep 02:20

All times are UTC + 3


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum