cancel
Showing results for 
Search instead for 
Did you mean: 

regexp match variables fail

regexp match variables fail

Helpme
New Contributor
Why regexp match variables function fail

ex:

set var test "12345:34567"

set var a $TCL(regexp -all {([\d]{5}):([\d]{5})} $test all sub1 sub2)

sh var

following was result

------------------------------------------------------------------
variableName variableValue
-------------------------------- --------------------------------
a 1
CLI.SESSION_TYPE telnet
CLI.USER admin
STATUS 0
test 12345:34567

from display can't found all, sub1 and sub2 varible

0 REPLIES 0
GTM-P2G8KFN