<?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: TCL function (regexp and regsub function only don partial) in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35155#M7034</link>
    <description>Hey Helpme  Thanks for the update.  I will check it out but if you think this is a bug then please open up a case with GTAC as that is the only way to get bugs fixed.    Thanks  P</description>
    <pubDate>Tue, 30 Sep 2014 05:35:00 GMT</pubDate>
    <dc:creator>Paul_Russo</dc:creator>
    <dc:date>2014-09-30T05:35:00Z</dc:date>
    <item>
      <title>TCL function (regexp and regsub function only don partial)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35152#M7031</link>
      <description>XOS 15.5.2.9 patch1-5&lt;BR /&gt;
&lt;BR /&gt;
set var a "12345:54321:7806"&lt;BR /&gt;
&lt;BR /&gt;
set var x $TCL(regexp -all {([0-9]*):([1-5]{5}):([0-9]{1,4})} $a match s1 s2 s3)&lt;BR /&gt;
&lt;BR /&gt;
show var&lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
Count : 5&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
variableName                      variableValue&lt;BR /&gt;
--------------------------------  --------------------------------&lt;BR /&gt;
a                                 12345:54321:7806&lt;BR /&gt;
CLI.SESSION_TYPE                  telnet&lt;BR /&gt;
CLI.USER                          admin&lt;BR /&gt;
STATUS                            0&lt;BR /&gt;
x                                 1&lt;BR /&gt;
&lt;BR /&gt;
Form display i can't get match, s1, s2 and s3 variable&lt;BR /&gt;
&lt;BR /&gt;
Is this a bug &lt;BR /&gt;
&lt;BR /&gt;
set var y $TCL(regexp -all {:} $a / s4)&lt;BR /&gt;
&lt;BR /&gt;
30B-01.10 # show var&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
Count : 6&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
variableName                      variableValue&lt;BR /&gt;
--------------------------------  --------------------------------&lt;BR /&gt;
a                                 12345:54321:7806&lt;BR /&gt;
CLI.SESSION_TYPE                  telnet&lt;BR /&gt;
CLI.USER                          admin&lt;BR /&gt;
STATUS                            0&lt;BR /&gt;
x                                 1&lt;BR /&gt;
y                                 2&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Form above show var result why i can get match variable content&lt;BR /&gt;
&lt;BR /&gt;
is this another bug&lt;BR /&gt;
&lt;BR /&gt;
if that are bugs please quickly correct ...........&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Sep 2014 10:57:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35152#M7031</guid>
      <dc:creator>Helpme</dc:creator>
      <dc:date>2014-09-29T10:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: TCL function (regexp and regsub function only don partial)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35153#M7032</link>
      <description>Hello Helpme&lt;BR /&gt;
&lt;BR /&gt;
Can I ask what your end goal is?  I don't see where variables S1 S2 S3 are defined.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
P&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Sep 2014 20:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35153#M7032</guid>
      <dc:creator>Paul_Russo</dc:creator>
      <dc:date>2014-09-29T20:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: TCL function (regexp and regsub function only don partial)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35154#M7033</link>
      <description>From original document that's variable will auto generate, i already test if give that variable initialize but that regexp function will exist same bug....&lt;BR /&gt;
&lt;BR /&gt;
ena cli scrip&lt;BR /&gt;
set var a "12345:54321:98765"&lt;BR /&gt;
set var s1 0&lt;BR /&gt;
set var s2 0&lt;BR /&gt;
set var s3 0&lt;BR /&gt;
set var s0 0&lt;BR /&gt;
set var x $TCL(regexp -all -- {([\d]{1,5}):([\d]*):([\d]{5})} $a s0 s1 s2 s3)&lt;BR /&gt;
&lt;BR /&gt;
 sh var&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
Count : 9&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
variableName                      variableValue&lt;BR /&gt;
--------------------------------  --------------------------------&lt;BR /&gt;
a                                 12345:54321:98765&lt;BR /&gt;
CLI.SESSION_TYPE                  telnet&lt;BR /&gt;
CLI.USER                          admin&lt;BR /&gt;
s0                                0&lt;BR /&gt;
s1                                0&lt;BR /&gt;
s2                                0&lt;BR /&gt;
s3                                0&lt;BR /&gt;
STATUS                            0&lt;BR /&gt;
x                                 1&lt;BR /&gt;
------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
The regsub function always only do the match function but variable will not assign ...&lt;BR /&gt;
&lt;BR /&gt;
so i think that is a bug.&lt;BR /&gt;
&lt;BR /&gt;
I use ActiveTCL test that above two command the match variable function will ok.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Sep 2014 05:18:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35154#M7033</guid>
      <dc:creator>Helpme</dc:creator>
      <dc:date>2014-09-30T05:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: TCL function (regexp and regsub function only don partial)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35155#M7034</link>
      <description>Hey Helpme  Thanks for the update.  I will check it out but if you think this is a bug then please open up a case with GTAC as that is the only way to get bugs fixed.    Thanks  P</description>
      <pubDate>Tue, 30 Sep 2014 05:35:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35155#M7034</guid>
      <dc:creator>Paul_Russo</dc:creator>
      <dc:date>2014-09-30T05:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: TCL function (regexp and regsub function only don partial)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35156#M7035</link>
      <description>I was trying this out on what is my current version of firmware 15.6.3.1 and it is definitely true that all you can do with regexp is determine if a string matches a pattern. There are no match variable assignments and regsub will do nothing useful.&lt;BR /&gt;
&lt;BR /&gt;
This is very disappointing because to work around this, an awful lot of extra and quite complex coding is needed. I am going to load up a recent version of XOS and see if anything has changed.</description>
      <pubDate>Thu, 26 Oct 2017 18:28:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35156#M7035</guid>
      <dc:creator>Ed_McGuigan1</dc:creator>
      <dc:date>2017-10-26T18:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: TCL function (regexp and regsub function only don partial)</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35157#M7036</link>
      <description>What about using Python instead of CLI scripting?&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:05:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/tcl-function-regexp-and-regsub-function-only-don-partial/m-p/35157#M7036</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2017-10-26T20:05:00Z</dc:date>
    </item>
  </channel>
</rss>

