alright im new to the regexp command, what im trying to do, is take the following string "(hello) (this) is.my.test.string-hehe (ok)" and make regexp match and take out only the "is.my.test.string-hehe" however im sort of stuck =\
my current script:
set word1 "(hello) (this) is.my.test.string-hehe (ok)"
if {[regexp {([^]+\.[^]+)} $word1 {} dottedstring]} {
echo "dottedstring is: $dottedstring"
}
Its not matching correctly and I could use some help =|