Suppose I have
<img class="size-full wp-image-10225" alt="animals" src="abc.jpg"> blah blah blah
<a href="http://en.wikipedia.org/wiki/Elephant">elephant is an animal</a> blah
I want a regex to give me the output :
blah blah blah <a href="http://en.wikipedia.org/wiki/Elephant">elephant is an animal</a> blah
without the . I can do str.replace(" ","") separately, but how do I get the string starting from blah blah... until blah (which includes link tag).