This is for Visual Studio 2012. VS 2012 uses a more standard RegEx rather than earlier version. This may not work in earlier version of VS.
Match images tags
Regular Expression: <imageurl>.*</imageUrl>
Remove blank lines from Code
Regular Expressoin: ^[space]*\r\n
Reqular Expression in SQL Server Management Studio
Append comma to all integers at start of the lines
Reqular Expresson: ^:z
Replace with : \0,
Make sure you select regular expression when using Find Window.