http://www.perlmonks.org?node_id=745841

planet has asked for the wisdom of the Perl Monks concerning the following question:

I need a quick, fast and reliable solution to add a sessionid to each html-tag-attribute (a, form, img, iframe, etc.) in a HTML-document.

There are solutions with regex´s, but they are too slow for my needs (50-200kbytes HTML-documents).

I need a solution, that´s capable of doing this in 50-100ms per document (each doc with 100-400 affacted tags).
This maybe done in XS only?