I want to split on dot (.
) but I don't want to splits the links.
Let's say the string is -
<p>This is a paragraph. I want to split it. <a href="somesite.com">Link</a>
Expected Output -
'<p>This is a paragraph' ,'I want to split it' ,'<a href="somesite.com">Link</a>'
Current Output -
'<p>This is a paragraph' ,'I want to split it' ,'<a href="somesite', 'com">Link</a>'
Note that I don't want the link to split. Also, I know you can split it using .split(".")
but how can I not split that link?