You must remember that Tcl regexp default is that a newline is simply a character so the regexp would treat the whole file as as string. I think SMAT reverses this and, by default, uses newline as end of a string.
So for the flat file you need to do something like:
regexp -line — {REGEXP}
The above would only match the first instance found so for all you would need something like:
set LIST [regexp -all -inline -line — {REGEXP}]
Of course this assumes your flat file is saved as newline delimited. It would not work against a .msg file of len10 file. That would really get hairy! 😀
Author
Replies
Viewing 4 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.