RE: replacetext and grep

2000-11-17 Thread Dave Cragg
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,

RE: replacetext and grep

2000-11-15 Thread Geoff Canyon
>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

RE: replacetext and grep

2000-11-14 Thread andu
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

RE: replacetext and grep

2000-11-14 Thread Xavier Bury
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

Re: replacetext and grep

2000-11-14 Thread andu
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

replacetext and grep

2000-11-13 Thread Xavier Bury
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