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

Reply via email to