Jim Beard wrote:

>       m_asynchro = m_asynchro.replaceAll("\\c&lt\\c;", "<");
>       m_asynchro = m_asynchro.replaceAll("&gt;", ">");

I don't know Java, but I think you want this.

        m_asynchro = m_asynchro.replaceAll("\\&lt\\;", "<");
        m_asynchro = m_asynchro.replaceAll("\\&gt\\;", ">");
        m_asynchro = m_asynchro.replaceAll("\\&amp\\;", "&");

This should also work.

        m_asynchro = m_asynchro.replaceAll("&lt;", "<");
        m_asynchro = m_asynchro.replaceAll("&gt;", ">");
        m_asynchro = m_asynchro.replaceAll("&amp;", "&");

http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html#sum

Extra credit question: Why translate ampersands last?

-- 
Bob Miller                              K<bob>
                                        [EMAIL PROTECTED]
_______________________________________________
EUGLUG mailing list
euglug@euglug.org
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to