From: Anton Gorlov <stalker@altlinux.ru> To: "культурный офтопик" <smoke-room@lists.altlinux.org> Subject: [room] need help about regexp Date: Fri, 15 Dec 2006 16:52:34 +0300 Message-ID: <4582A8A2.40008@altlinux.ru> (raw) Народ.. нужна помощь по поводу 1 регекспа. Файл написан на чём-то !/usr/bin/expect -- В нём есть регексп: regsub -all {^(.{1,14}).*([#>])$} $reprompt {\1([^#>\r\n]+)?[#>](\\([^)\\r\\n]+\\))?} Строка типа Cat_Root# через него проходит..а вот строка вида c7301-PPPoE-AC> уже нет. Вопрос.. как поправить регексп чтоб он и такую строку заглатывал?
next reply other threads:[~2006-12-15 13:52 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-12-15 13:52 Anton Gorlov [this message] 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
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=4582A8A2.40008@altlinux.ru \ --to=stalker@altlinux.ru \ --cc=smoke-room@lists.altlinux.org \ /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
Культурный офтопик 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