<?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 XMC Governance regex flags in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/xmc-governance-regex-flags/m-p/74216#M445</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to catch a especific config for a interface vlan, but since there are several interfaces vlan I'm getting a no match.&lt;BR /&gt;
&lt;BR /&gt;
for example:&lt;BR /&gt;
&lt;BR /&gt;
!&lt;BR /&gt;
interface vlan 321&lt;BR /&gt;
ip igmp snoop&lt;BR /&gt;
interface vlan 124&lt;BR /&gt;
ip igmp snoop&lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
I'm trying the following expression:&lt;BR /&gt;
^\s*interface\svlan\s\d*4\sip\sigmp\ssnoop$&lt;BR /&gt;
&lt;BR /&gt;
For that I think multiline must be active.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to know or activate multiline?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Jose Chaves</description>
    <pubDate>Sat, 12 Oct 2019 05:09:52 GMT</pubDate>
    <dc:creator>Jose_Chaves</dc:creator>
    <dc:date>2019-10-12T05:09:52Z</dc:date>
    <item>
      <title>XMC Governance regex flags</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-governance-regex-flags/m-p/74216#M445</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to catch a especific config for a interface vlan, but since there are several interfaces vlan I'm getting a no match.&lt;BR /&gt;
&lt;BR /&gt;
for example:&lt;BR /&gt;
&lt;BR /&gt;
!&lt;BR /&gt;
interface vlan 321&lt;BR /&gt;
ip igmp snoop&lt;BR /&gt;
interface vlan 124&lt;BR /&gt;
ip igmp snoop&lt;BR /&gt;
!&lt;BR /&gt;
&lt;BR /&gt;
I'm trying the following expression:&lt;BR /&gt;
^\s*interface\svlan\s\d*4\sip\sigmp\ssnoop$&lt;BR /&gt;
&lt;BR /&gt;
For that I think multiline must be active.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to know or activate multiline?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Jose Chaves</description>
      <pubDate>Sat, 12 Oct 2019 05:09:52 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-governance-regex-flags/m-p/74216#M445</guid>
      <dc:creator>Jose_Chaves</dc:creator>
      <dc:date>2019-10-12T05:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: XMC Governance regex flags</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-governance-regex-flags/m-p/93345#M524</link>
      <description>&lt;P&gt;Clearly way too late to help the poster but I found that the best approach for EXOS devices is to try to match patterns against the XML config and not the CLI config. There doesn't appear to be any way to specify a multiline pattern but in the XML file, an object is often defined on a single line.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 20:03:07 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-governance-regex-flags/m-p/93345#M524</guid>
      <dc:creator>Ed_McGuigan1</dc:creator>
      <dc:date>2022-10-13T20:03:07Z</dc:date>
    </item>
  </channel>
</rss>

