Can someone explain why regexp will work with something like:
Code: Select all
set mylameregexp "blah blah($somevarIwanttoGrep) blah"
regexp $mylameregexp $varIamGrepping match myvar
Code: Select all
regexp {blah blah ($somevarIwanttoGrep) blah} $varIamGrepping match myvar
Trying to set certain patterns in vars is itself an exercise in creative kludging...
::end rant::