Updated regular expression to ignore url sections with inline images.