Hi!
I have managed to live without using too much regular expressions so
far, and now that I need one, I need some help too.
I have a string containing a (possibly large) block of html. I need to
insert code (an image to be precise) right after the last textual
character in the string. This is, of course, no problem if the end
contains plain text and no html. If the string ends in HTML however, I
need to fiddle around. for example consider that the string ends like
"... lorem ipsum.</p></blockquote>". I need to insert code between
"ipsum." and "</p>".
So what kind of regular expression I need, or is there another way I
have missed, to insert code into the string, right after the last
visible character, but before the possibly following html tags (usually
ending tags such as the mentioned </p> and </blockquote>).
Thank you in advance.
--
Suni