From: Sir Raorn <raorn@binec.ru>
To: devel@linux.iplabs.ru
Subject: [devel] Re: [devel] RegExp: проблема, нужна помощь
Date: Thu, 31 May 2001 10:45:26 +0400
Message-ID: <20010531104526.B14950@hell.binec.ru> (raw)
In-Reply-To: <3B0E46CF.9090803@altlinux.ru>; from rider@altlinux.ru on Fri, May 25, 2001 at 03:49:35PM +0400
On Fri, May 25, 2001 at 03:49:35PM +0400, Anton Farygin wrote:
> Суть ее в том, что внутри тегов (< >) нужно удалить с помощью перла все
> переводы строк (\n). А удаляется только первый.
my $in_tag=0;
while(<>) {
if ($in_tag) {
if (! m/\>[^<>]*$/) {
$in_tag=0;
} else {
s/\n/ /g; # или какие там ему надо?
}
} else {
if (m/\<[^<]*$/) {
$in_tag=1;
s/\n/ /g;
}
}
}
В общем примерно что-то в этом роде :-)
--
Regards, Sir Raorn.
,-----------------------------------.----------------------.
| Registered Linux user #177282 | ICQ UIN #68527095 |
`-----------------------------------^----------------------'
_______________________________________________
Devel mailing list
Devel@linux.iplabs.ru
http://www.logic.ru/mailman/listinfo/devel
prev parent reply other threads:[~2001-05-31 6:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-25 11:49 Anton Farygin
2001-05-25 11:57 ` [devel] " Alexander Bokovoy
2001-05-25 12:16 ` Anton Farygin
2001-05-25 12:22 ` [devel] " Alexander Bokovoy
2001-05-26 3:02 ` Alex Sergeyev
2001-05-31 6:45 ` Sir Raorn [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=20010531104526.B14950@hell.binec.ru \
--to=raorn@binec.ru \
--cc=devel@linux.iplabs.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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git