Sorry I am new to regex so please forgive me . I have several strings such as
"mso-table-lspace:0;mso-table-rspace:0;margin:0;padding:0;background: url(http://someurl/lib/id/w/download_bg.jpg) no-repeat top left #f9f9f9; text-align:center;"
"font-size: 3px; line-height: 3px;"
I want to first check if string contains a image url ( which contains https? and .png or .jpeg or .jpg) and if present in string replace it with a different url.
So for first string the output should be
"mso-table-lspace:0;mso-table-rspace:0;margin:0;padding:0;background: url(http://someotherurl/lib/id/w/download_bg.jpg) no-repeat top left #f9f9f9; text-align:center;"