At 6:28 AM +0100 11/15/00, Xavier Bury wrote:
>why does
> put replacetext(y,"$",tab) into y
>
>not work at all
the $ symbol means that the > character will only be matched if it
occurs at the end of the string being searched. I assume y contains
text after the >.
>and
>
> put replacetext(y,
>i'll try again,
>
>why does
> put replacetext(y,"$",tab) into y
>
>not work at all
I'll step out on a limb here, anyone can feel free to saw it off if
your knowledge of MetaCard grep is better than mine.
The key issue here is that MetaCard's grep function is "greedy" what
that means is that
if you have:
local tUser,tPasswd,tUrl,tPort,tPub
put "http://userName:[EMAIL PROTECTED]:82/pub" into x
put matchText (x, "^http://(.+):(.+)@(.[^/:]+)(:.[^/]+)(/.+)",tUser,\
tPasswd,tUrl,tPort,tPub) into temp
if temp is true then
put tUser$$tPasswd&&tUrl&&tPort&&tPub
See if it works.
Reg
acter '\>'.
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
Make sure you read the documentation very well, declare the variables and experiment
starting with the examples given. It's not easy but there is a logic to it in the end.
The
engine sometimes gets confused and it's a good idea to restart once in a while when
practicing.
Stuff like "[~<]" will n
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...
with these script samples... to strip the garbage tags
put replacetext(y,"^$",empty) into y
put replacetext(y,"$","") into y
put replacetext(y,"",empty) into