ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim Savrilov <Maxim.Savrilov@novocybersk.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] офтопик -  регулярные выражения
Date: Sat May 26 08:31:01 2001
Message-ID: <3B0F34BB.9986B3AB@novocybersk.ru> (raw)
In-Reply-To: <3B0E4CB7.1010506@altlinux.ru>

Anton Farygin wrote:

> А как быть в случае, если искать нужно вот в такой строке:
>
> <li><font size=+1><a
> href=
> "Линк
> "
>  >Название</a>Дата</font></li>
>
> ???
>
> У меня примерно такая задача и я уже сломал голову над этим. ;-(
> В одной строке кончено просто... ;-(
>

1. убрать переводы строк
2. разбить получившуюся одну строку по буквосочетанию ("li>", например)
3. работать с этими строками.

1. перебирать строки до появления какого-либо буквосочетания (</li>)
2. составлять из этих строк одну строку, после </li> добавлять /n (запихивать в
массив, ...)
3. работать с этими строками.

P.S. это первое, что пришло в голову.




  parent reply	other threads:[~2001-05-26  8:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-16 18:06 cornet
2001-05-16 21:14 ` [mdk-re] офтопик -регулярныевыражения Sergei
2001-05-17 13:37   ` Vyt
2001-05-17 14:38     ` [mdk-re] " cornet
2001-05-19  2:55 ` [mdk-re] Re: [mdk-re] офтопик - регулярные выражения Mikhail Zabaluev
2001-05-19  4:28   ` Sergey Degtyaryov
2001-05-19 13:09     ` Mikhail Zabaluev
2001-05-21 14:04       ` cornet
2001-05-25 16:08         ` Anton Farygin
2001-05-25 16:50           ` [mdk-re] Re[2]: " Sergey Degtyaryov
2001-05-25 17:03             ` [mdk-re] " Alexander Bokovoy
2001-05-28 13:01               ` [mdk-re] помогите настроить RELAY в POSTFIX Serg
2001-05-28 13:07                 ` Volkov Serge
2001-05-28 23:11                   ` Sergey Vlasov
2001-05-27 18:54             ` [mdk-re] Re[2]: [mdk-re] Re: [mdk-re] офтопик - регул ярные выражения Anton Farygin
2001-05-27 21:59               ` [mdk-re] Re: [mdk-re] офтопик - регулярные выражения Mikhail Zabaluev
2001-05-28  8:23                 ` Anton Farygin
2001-05-28 12:18                   ` Mikhail Zabaluev
2001-05-28 12:56                     ` Anton Farygin
2001-05-28 13:50                       ` Баталов Григорий
2001-06-01 10:43               ` [mdk-re] Re: ÏÆÔÏÐÉË - ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ Andrey Brindeew
2001-06-01 10:59                 ` [mdk-re] Re: офтопик - регулярные выражения Anton Farygin
2001-06-01 11:18                   ` [mdk-re] " Mikhail Zabaluev
2001-06-01 11:33                     ` Anton Farygin
2001-06-01 14:53                   ` [mdk-re] Re: ÏÆÔÏÐÉË - ÒÅÇÕÌÑÒÎÙÅ ×ÙÒÁÖÅÎÉÑ Andrey Brindeew
2001-06-02 15:04                     ` [mdk-re] Re: [mdk-re] Re: офтопик - регулярные выражения Mikhail Zabaluev
2001-05-26  8:31           ` Maxim Savrilov [this message]
2001-05-26 18:10             ` [mdk-re] " Anton Farygin
2001-05-31 15:50           ` [mdk-re] " cornet

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=3B0F34BB.9986B3AB@novocybersk.ru \
    --to=maxim.savrilov@novocybersk.ru \
    --cc=mandrake-russian@altlinux.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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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