Культурный офтопик
 help / color / mirror / Atom feed
* [room] need help about regexp
@ 2006-12-15 13:52 Anton Gorlov
  2006-12-15 19:11 ` Michael Shigorin
  0 siblings, 1 reply; 7+ messages in thread
From: Anton Gorlov @ 2006-12-15 13:52 UTC (permalink / raw)
  To: культурный
	офтопик

Народ.. нужна помощь по поводу 1 регекспа.

Файл написан на чём-то

!/usr/bin/expect --


В нём есть регексп:

  regsub -all {^(.{1,14}).*([#>])$} $reprompt 
{\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?}


Строка типа
Cat_Root# через него проходит..а вот строка
вида
c7301-PPPoE-AC> уже нет.
Вопрос.. как поправить регексп чтоб он и такую строку заглатывал?



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-12-18 10:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-15 13:52 [room] need help about regexp Anton Gorlov
2006-12-15 19:11 ` Michael Shigorin
2006-12-15 21:04   ` Anton Gorlov
2006-12-15 21:06     ` Michael Shigorin
2006-12-15 21:11       ` Anton Gorlov
2006-12-18 10:04         ` Denis Kuznetsov
2006-12-15 21:35       ` Andrey Rahmatullin

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

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


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