Hey There,
I'm starting to feel kinda weird, seems like i'm the only one having problems with TCL/TK or at least the only one asking for help in this forum
Oh well... I'm trying to figure out if a string is applicable or no with a regular expression but i get similart strings but a 0 as ruturn value.
My regexp:
and on the screen i see:
==== string to apply the pattern:
Passed 2 iterations
Failed 0 iterations
>
==== regexp pattern: 'Passed 2 iterations'
==== BIST results: result 0 - result2: 0 ====
So why does it not rocognize my string: "Passed 2 iterations"?
I'm sorry if I'm just stealing your valuable time with my dummy questions but i really appreciate the help you guys provide! It's saved me lots of headache!
Thanks!
I'm starting to feel kinda weird, seems like i'm the only one having problems with TCL/TK or at least the only one asking for help in this forum
Oh well... I'm trying to figure out if a string is applicable or no with a regular expression but i get similart strings but a 0 as ruturn value.
My regexp:
Code:
set result [regexp {"Passed $BIS_Test::total_iterations iterations"} $finaltest::product(device_info)];
$GUI::twidget insert end "\n==== string to apply the pattern: $finaltest::product(device_info)"
$GUI::twidget insert end "\n==== regexp pattern: 'Passed $BIS_Test::total_iterations iterations'"
$GUI::twidget insert end "\n==== BIST results: result $result - result2: $result2 ===="
and on the screen i see:
==== string to apply the pattern:
Passed 2 iterations
Failed 0 iterations
>
==== regexp pattern: 'Passed 2 iterations'
==== BIST results: result 0 - result2: 0 ====
So why does it not rocognize my string: "Passed 2 iterations"?
I'm sorry if I'm just stealing your valuable time with my dummy questions but i really appreciate the help you guys provide! It's saved me lots of headache!
Thanks!