Could someone provide me with an example of regexp using the regular expresion stored in a variable? I have alot of documentation on regular expresions, but I can't seem to find anything with the expresion you are trying to match against being contained in a variable.
Example of what Im trying to do:
set FindThis "[A-Z][a-z]+_[0-9][0-9]"
regexp $FindThis $text
Im testing my regular expresions in tclsh. They work when I hard code them, but never work when I store them in a variable.
Any help would be greatly appriceated.
so, if I do the set like you showed. That will take the escape characters also?
And thank you very much, I would never have thought to set that variable that way.