Re: [Clip] Extracting info between tabs ?
- ebbtidalflats wrote:
> Hi John,I concur with the above.
> See the insertion (and slight mod to the "FIND <body") into Don's code
> --- In firstname.lastname@example.org, johnf@... wrote:
>> On Sat, 17 May 2008 20:57:54 -0500, Don Daugherty wrote:
>>> ^!SetCursor 1:1
>>> ^!Find "</body>" IS
>>> ^!Jump Select_Start
>>> ^!Set %From%=^$GetRow$:^$GetCol$
>>> ^!Find "<body" IS
>>> ^!IfError End
> ^!Select HTMLTAG
>>> ^!Jump Select_End
>>> ^!Set %To%=^$GetRow$:^$GetCol$
>>> ^!SetCursor ^%From%
>>> ^!SelectTo ^%To%
>>> ^!InsertText ""
>>> ^!GoTo Repeat
>> I notice however that I gave you incorrect information. The <body> tag
>> could in fact be different. Instead of eg. <body> it could be
>> something like <body bgcolor="#3c035a" onload="MM_preloadImages
>> etc. etc.
>> In other words the <body> tag could have variable information in.
>> Could your code above be adapted to accomodate this situation ?
> The Select HTMLTAG command SHOULD select the entire body tag,
> if it doesn't, it's Eric's way of telling you to UPGRADE NoteTab <g>.
If the ^!Select HTMLTAG command somehow doesn't select the entire tag,
an alternative would be to recode the find <body tag as shown below
^!Find "<body[^>]*>" RS
and not use the Select HTMLTAG command.