<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regular Expression problem in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Regular-Expression-problem/m-p/47508#M9755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that in each case the "hostname" part you want to extract:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;".*?_(.*?)_.*?"&lt;/SPAN&gt; will do it for strings with the form "&amp;lt;something&amp;gt;_HostName_&amp;lt;anything&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Zone_.+?_(.+?)_.*+ will catch "&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Zone_&amp;lt;something&amp;gt;_Hostname_&amp;lt;anything&amp;gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;In case you haven't seen it, a way to test your regexp it to use the GUI: from the "Automatic Host Resolution Regexp Wizard" window, once you've added an expression click on the "..." small button at the right of the "Regexp" line to access the "Regular Expression Editor" to test live your expression, it's handy to figure out what's the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16490_2012-08-09+12.01.35+pm.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16491_2012-08-09+12.01.19+pm.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There's also a link to an HTML help page with all regular-expression you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/fx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 10:07:24 GMT</pubDate>
    <dc:creator>francoi1</dc:creator>
    <dc:date>2012-08-09T10:07:24Z</dc:date>
    <item>
      <title>Regular Expression problem</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Regular-Expression-problem/m-p/47504#M9754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was doing a PoC and had problem with RegExp for extracting host names from zone names. there are three types of zone names in my customer environment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Z_HostName_hba_1_blah&lt;/P&gt;&lt;P&gt;- Zone_HostName_hba_2&lt;/P&gt;&lt;P&gt;- Zone_P565_Hostname_hba_2_blah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using as regexp (.*?)_(.*?)_(.*?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working for some zone names but for some zones/hosts (even they are looking similar to zone names which are working) it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? Is there any tool to create regexps easily especially if customer has any rules for zone names?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lutfi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:21:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Regular-Expression-problem/m-p/47504#M9754</guid>
      <dc:creator>luetfi</dc:creator>
      <dc:date>2025-06-05T06:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression problem</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Regular-Expression-problem/m-p/47508#M9755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that in each case the "hostname" part you want to extract:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;".*?_(.*?)_.*?"&lt;/SPAN&gt; will do it for strings with the form "&amp;lt;something&amp;gt;_HostName_&amp;lt;anything&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Zone_.+?_(.+?)_.*+ will catch "&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Zone_&amp;lt;something&amp;gt;_Hostname_&amp;lt;anything&amp;gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;In case you haven't seen it, a way to test your regexp it to use the GUI: from the "Automatic Host Resolution Regexp Wizard" window, once you've added an expression click on the "..." small button at the right of the "Regexp" line to access the "Regular Expression Editor" to test live your expression, it's handy to figure out what's the output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16490_2012-08-09+12.01.35+pm.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/16491_2012-08-09+12.01.19+pm.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There's also a link to an HTML help page with all regular-expression you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/fx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 10:07:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Regular-Expression-problem/m-p/47508#M9755</guid>
      <dc:creator>francoi1</dc:creator>
      <dc:date>2012-08-09T10:07:24Z</dc:date>
    </item>
  </channel>
</rss>

