|
白雲斎です。
HTMLソースからのマクロ例:
// HTMLソースはコンテンツ(右側)
// タグ内部、<TD>要素が改行していないことを前提
disabledraw;
replaceallfast "^[\t ]*\n", "", regular;
while(1)
{
replaceallfast "</td>[\t ]*\n[\t ]*<td", "</td><td",
regular, nocasesense;
if( result < 1 ) break;
}
// 念のため
replaceallfast "<tr[^>]*>|</tr>", "\n", regular, nocasesense;
enabledraw;
#html = hidemaruhandle(0);
localgrep "<td[^>]*> *<a href=\"[^/]+?\\.asp\"> *\\w+ *</a>",
regular, nocasesense;
if( result < 1 ) quit;
closehidemaruforced #html;
disabledraw;
replaceallfast "^[^:]+: +", "", regular;
replaceallfast "</td><td[^>]*>", "\x0c", regular, nocasesense;
replaceallfast "</?[^>]+>", "", regular;
replaceallfast "^[\t ]+|[\t ]+$", "", regular;
selectall;
copy;
escape;
replaceallfast "\x0c.+", "", regular;
enabledraw;
newfile;
disabledraw;
paste;
replaceallfast "^.+?\x0c", "", regular;
enabledraw;
endmacro;
|
|