I am able to get string "tcl_module_proc" in var $b by regular expression
command like:
regexp {.*\((.*?)\)((.*)([ ]*tcl)(.*))} $line a b c d e
but I haven't find out the way to extract file name "tcl_module.tcl" yet.
Any one can help?
Thanks in advance,
...hai
Why not consider a different approach? Simply eval each of the lines,
then do the equivalent of a parray on auto_index.
To answer your specific question though, this seems to work:
regexp {auto_index\((.*?)\).*\m(\w+\.tcl)} $line match a b
that is, search for "auto_index(", grab everything up to the next ")",
skip over everything until we find the start of a word, a bunch of word
characters, and the literal string .tcl.
"Bryan Oakley" <br...@bitmover.com> wrote in message
news:Ypo3c.8608$AJ7....@newssvr23.news.prodigy.com...