i'll try again,
why does
put replacetext(y,"<FONT.+>$",tab) into y
not work at all
and
put replacetext(y,"<FONT.+>.*$",tab) into y
replace ALL the text from the first font tag to the end of the file?
and
put replacetext(y,"<font.*[^<]>",tab) into y
still replace all the text to the end even though it's not supposed to go
beyond one tag...
i also tried with <td.*[^<]+> and <td.*^[<]>
The strangest part is that I even separated EVERY tag with returns so that
each is sitting on one line.
This means that the "$" is not respecting something... I also tried with
escaping the character '\>'.
This is another one of these computer witchcraft things im sure...
Xavier
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Xavier Bury
> Sent: Tuesday, November 14, 2000 7:16 AM
> To: [EMAIL PROTECTED]
> Subject: replacetext and grep
>
>
> Hi guys,
>
> I thought I knew grep pretty well but i can't get it working!
>
> im trying to convert html tables to tab files...
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>
> <HEAD>
> <TITLE>
> </TITLE>
> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
> <META content="MSHTML 5.50.4134.100" name=GENERATOR>
> </HEAD>
> <BODY>
>
> with these script samples... to strip the garbage tags
>
> put replacetext(y,"^<!doctype.+>$",empty) into y
> put replacetext(y,"<META.+>$","") into y
> put replacetext(y,"<FONT.*>",empty) into y
>
> none of these worked!
>
> put replacetext(y,"<!doctype.+>",empty) into y
>
> will delete the whole document and with a $ sign at the end will not find
> the string!
>
> in all cases, if I remove the $, ALL the text after the first tag found is
> deleted down to the end of the document!
>
> adding the exclusion of [~<] didn't have an effect... (is it supported at
> all?)
>
> I am sure that there is not characters between the beginning or end of the
> line and the tag start or end.
>
> casesensitive global didn't change anything.
>
> i read the manual, and the xworlds tutorial pages but none helped...
>
> i know that grep changes from one app to another but this is out of my
> logic...
>
> thanks for any help from anyone!
> Xavier
>
>
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.