<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Regex problem]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">to extract the interface name from Net.InterfaceList I use this regular expression: "^(.+?)\s+(.+?)\s+(.+?)\s+(.+?)\s+(.+)$"<br />
The reason is that Windows could contain spaces in the interface name: 13 10.141.120.11/23 6 000C29F2B70D LAN-Verbindung 2</p>
<p dir="auto">It seems like NetXMS doesn't honor the non-greedy operator, because the result is:<br />
$1 = 13 10.141.120.11/23<br />
$2 = 6<br />
$3 = 000C29F2B70D<br />
$4 = LAN-Verbindung<br />
$5 = 2</p>
<p dir="auto">Actually $5 should be: LAN-Verbindung 2</p>
<p dir="auto">Thanks, VMGuy</p>
]]></description><link>https://forum.netxms.org/topic/3568/regex-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:18:57 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3568.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jan 2015 19:57:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex problem on Tue, 27 Jan 2015 07:30:19 GMT]]></title><description><![CDATA[<p dir="auto">Looks like a bug in libtre, we'll look into it.</p>
<p dir="auto">In meantime you can use this regexp: "^([0-9]+)\s([0-9./]+)\s([0-9]+)\s([0-9A-F]+)\s(.+)$", or a bit more generic: "^([^\s]+)\s([^\s]+)\s([^\s]+)\s([^\s]+)\s(.+)$"</p>
]]></description><link>https://forum.netxms.org/post/15807</link><guid isPermaLink="true">https://forum.netxms.org/post/15807</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 27 Jan 2015 07:30:19 GMT</pubDate></item></channel></rss>