Naomi --
That handles the simple case, but not the messier cases with nested WITH ENDWITH. The regular expression erronously finds that the first ENDWITH matches the first WITH.
Perhaps that are more complicated forms of regular expressions that find matching pairs like this, but I'm not aware of them.
Thanks
>>Naomi --
>>
>>Yes, in fact, I had reviewed that thread as part of a different topic.
>>
>>However, WITH / ENDWITH is a little messier -- um, a lot messier -- since you need to find the matching ENDWITH for each WITH. Have not figured out how to do that. Once I can do so for a given PROC or METHOD, I should be able to do so for all of them as described in the thread.
>>
>>
>You need to use Regular Expressions. WITH follows with anything then RETURN then anything then ENDWITH. Should be a bit tricky to construct this expression.
Jim Nelson
Newbury Park, CA