I just started learning expect scripting.I have been trying to extract the following from my output:
core.4046140998.01.10.133211
with an e
You have missed a . after \.:
.
\.
^(core)\..*(\*)$
\. matches a literal . and . matches any single character.
Or you can use the non-greedy version:
^(core)\.[^*]*(\*)$