I have a String like this:
.........e1.whatsapp.net..............>.ns1.p13.dynect..hostmaster.whatsapp.com.x:a>.......X..:....
And I need to extract the first URL:
e1.whatsapp.net
I was trying with the solution in this post but not working for me, maybe because the amount of dots. Maybe if I try with another pattern regex, but I know nothing about "regex".
Any sugestion?
hostmaster.whatsapp.comis also URL. Is there any pattern for your URL ?.) by some character that's not in regex like>and apply the same regex removing\\b(https?|ftp|file)://since your URLs don't have https etc before the address.