in reply to Re^2: Regex to "wrap" a <span around an image.
in thread Regex to "wrap" a <span around an image.

Ah never saw that before. Thanks for pointing that one out! Technically shouldn't that be encoded as <img src="..." alt="&gt;">? I think you'll find my solution shouldn't fail unless you use data from people determined to make your life miserable.

Replies are listed 'Best First'.
Re^4: Regex to "wrap" a <span around an image.
by Skeeve (Parson) on Dec 12, 2008 at 23:47 UTC

    Sure I know. I use that regexp more than once in a while. But Sun is determined to make my life miserable ;-) (just kidding)


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e