From: Alex Sergeyev <abc@petr.kz>
To: devel@linux.iplabs.ru
Subject: Re: [devel] Re: [devel] RegExp: проблема, нужна помощь
Date: Sat, 26 May 2001 10:02:44 +0700
Message-ID: <20010526100244.08abdb7b.abc@petr.kz> (raw)
In-Reply-To: <3B0E4D00.8060905@altlinux.ru>
Привет Антон
>>>Суть ее в том, что внутри тегов (< >) нужно удалить с помощью перла
>>>переводы строк (\n). А удаляется только первый.
>> /g не пробовал в конце регеэкспа?
>/g конечно пробовал. Но дело не в этом - вся загвоздка в том, что
>обрабатывать приходится шаблон, распространяющийся на несколько строк.
Скорее всего тебе уже ответили надо
$template =~ s/\n//sg;
Кстати можно извращаться и делать например замену \n на ' ' (пробел)
Иногда это даже полезнее потому что пробелы в HTML нужны кое где вместо
перевода строки
--
Sincerely, Alex
_______________________________________________
Devel mailing list
Devel@linux.iplabs.ru
http://www.logic.ru/mailman/listinfo/devel
next prev parent reply other threads:[~2001-05-26 3:02 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 [this message]
2001-05-31 6:45 ` Sir Raorn
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=20010526100244.08abdb7b.abc@petr.kz \
--to=abc@petr.kz \
--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