Hi.
I'm trying to insert on-screen sequential numbers (in locally saved
web documents) to let non-web designers comment on the elements/tags.
Additionally, these numbers act as a pseudo-line/reference number.
Just to be clear, if I have:
<body>
<p>Lorem ipsum <b>dolor</b></p>
<p>Proin sed sapien</p>
</body>
I'm trying to generate:
<body>
<p>1 Lorem ipsum <b>2 dolor</b></p>
<p>3 Proin sed sapien</p>
</body>
I'm familiar with opening/saving files, loops, and regex, however,
working with/seamless massaging the text between tags, (and not
damaging the nested tag structure) is beyond me. How could I
manipulate HTML final rendered, on screen text, but respect the HTML
source?
(I'm having a lot of trouble forming a regex that honors tags within tags.)
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/