.net - Paragraph between hyperlink and Image URL has been cut off using Image hyperlink pattern -


i have paragraph looks this:

first.check out <a href="https://sample.com/applications/documents/solutioncontingency.html" target="_blank">demo </a>to learn solution contingency feature of mme.    second paragraph. head out of fog , use solution contingency feature in mme! costs wmu displayed on costs screen in forecast menu.   <a href="https://blog.sample.com/mme/files/2013/07/sc2.jpg"><img title="sc2" alt="" src="https://blog.sample.com/mme/files/2013/07/sc2.jpg" width="1262" height="711" /></a>  fourth.you should review solution contingency @ least once month.     

i replaced image url using regex empty string using this:

(<a.*?<img.*?>.*?/a>|<img.*?>) 

do have idea why output cut off hyperlink upto picture. displays first , fourth paragraph.

here's output:

first.check out fourth.you should review solution contingency @ least once month.     

removing of pictures works fine when paragraph has no hyperlink..

i'm not 100% sure you're after. if want isolate image tags, can change regex following: (<img.*?>)


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -