Hi Bruno Try this: parse page: read http://site [ some [ thru "=^"/" here: (insert back here "http://site") ] to end ] Note the use of 'back HTH -Larry ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 16, 2000 12:23 PM Subject: [REBOL] Relative to Absolute Paths (again). > Hello. > > I once asked about this problem and it's partially solved (thanks to > everyone that helped me), but there is one minor problem that I'm usable to > solve. > > What I want to do is read and HTML page and change all relative paths to > absolute ones. For example: > > Change > <img src="/path/file"> > To > <img src="http://site/path/file"> > > or > > Change > <a href="/path/file"> > To > <a href="http://site/path/file"> > > Here is the partial solution to the problem: > > parse page: read http://site [ > some [ > thru "=^"/" here: (insert here "http://site") > ] > to end > > The problem here is that, with this code, I end up with something like > > <img src="/http://sitepath/file"> > > As you can see, the "http://site" string is being inserted in the wrong > position. How do I fix it in the above sample code? > > Thanks. > > -Bruno > > -- > Bruno G. Albuquerque ([EMAIL PROTECTED]) BeDevId 15362 > Grupo Brasileiro de Usuarios de BeOS - Presidente > http://beos.din.uem.br > > "I am returning this otherwise good typing paper to you because someone > has printed gibberish all over it and put your name at the top." > -- English Professor, Ohio University
