Forum Discussion
Kevin_Stewart
Oct 04, 2018Employee
Something like this maybe,
set str1 "foo.bar.1234567890"
set str2 "foo.bar.1234567890123456"
if { ( [regexp {([0-9]{16}|[0-9]{10})} $str2 temppiv] == 1 ) and ( [set temppiv [string range $temppiv 0 9]] ne "" ) } {
log local0. "TEST: temppiv = $temppiv"
}