Russ Johnson wrote:

> I know that, but s/&lt;/</g IS the reverse of s/</&lt;/g.

Um, actually, in ed, sed, ex and vi (among others), an ampersand on
the right side is shorthand for the string the left side matched.

    $ echo '<a></a>' | sed 's/</&lt;/g'
    <lt;a><lt;/a>

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

Reply via email to