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.