<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Регулярное выражение для Perl]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=34932&amp;type=atom" />
	<updated>2014-05-20T08:04:21Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=34932</id>
		<entry>
			<title type="html"><![CDATA[Re: Регулярное выражение для Perl]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=409399#p409399" />
			<content type="html"><![CDATA[<p>Второй вариант - супер. Решено.</p>]]></content>
			<author>
				<name><![CDATA[Burger]]></name>
				<uri>https://linuxforum.ru/profile.php?id=2988</uri>
			</author>
			<updated>2014-05-20T08:04:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=409399#p409399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Регулярное выражение для Perl]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=409394#p409394" />
			<content type="html"><![CDATA[<p>Я так понял, что </p><div class="quotebox"><cite>Burger пишет:</cite><blockquote><div class="codebox"><pre><code>network.w-1338.connections/count/Value</code></pre></div></blockquote></div><p> тоже нужно?<br /></p><div class="codebox"><pre><code>$ grep -P &quot;network\.(w-){0,1}[0-9]{1,4}\.connections/count/Value&quot; file</code></pre></div><p>или<br /></p><div class="codebox"><pre><code>$ grep -P &quot;network\.(w-)?[0-9]{1,4}\.connections/count/Value&quot; file</code></pre></div>]]></content>
			<author>
				<name><![CDATA[-=Serj=-]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16175</uri>
			</author>
			<updated>2014-05-20T07:05:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=409394#p409394</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Регулярное выражение для Perl]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=409390#p409390" />
			<content type="html"><![CDATA[<p>Привет.<br />Есть файл с таким содержимим:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">burger@lb:~$ cat file<br />network.148.connections/count/Value<br />network.8.connections/count/Value<br />network.5.connections/count/Value<br />network.56.connections/count/Value<br />network.w-1338.connections/count/Value<br />network.w-1457.ping/time/Twenty<br />network.w-12.response/time/Fifteen<br /></div><br />Задача: отгрепать только:<br /></p><div class="codebox"><pre><code>network.148.connections/count/Value
network.8.connections/count/Value
network.5.connections/count/Value
network.56.connections/count/Value</code></pre></div><p>На данный момент застопорился на таком варианте, но:<br /></p><div class="codebox"><pre><code>burger@lb:~$ grep -P &#039;network\.w-|[0-9]{1,4}\.connections/count/Value&#039; file|grep connections
network.148.connections/count/Value
network.8.connections/count/Value
network.5.connections/count/Value
network.56.connections/count/Value
network.w-1338.connections/count/Value</code></pre></div><p>Но может, существует возможность это реализовать одним перловым выражением?</p>]]></content>
			<author>
				<name><![CDATA[Burger]]></name>
				<uri>https://linuxforum.ru/profile.php?id=2988</uri>
			</author>
			<updated>2014-05-20T05:57:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=409390#p409390</id>
		</entry>
</feed>
