2
I have tried a lot of things but still unable to figure out due to greedy nature of regular expression
abc = 'dfbafbd<a href="#Free_Calling_Best_Apps">Free Calling Best Apps</a>sbrwsggsfzbs<a></a>abc
My regular expression
abc1 = re.sub(r'<a.+\/a>',' ',abc)
output = 'dfbafbd abc'
required output = 'dfbafbd sbrwsggsfzbs abc'
Thanks. It worked – abhav luthra – 2019-04-23T16:53:36.050
@abhavluthra: You're welcome, glad it helps. Feel free to mark the answer as accepted, see: https://superuser.com/help/someone-answers
– Toto – 2019-04-23T17:05:38.723