regexp match variables fail

  • 0
  • 1
  • Question
  • Updated 4 years ago

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


Photo of Helpme

Helpme

  • 260 Points 250 badge 2x thumb

Posted 4 years ago

  • 0
  • 1

Be the first to post a reply!