I have something as:-
....wasasa.org.pk wawwwsasa.msn.com ....ttrt .....ddd.dd www.edu.pk .ru
I only want to pick following
org.pk .com edu.pk
The possible regex i wrote is
The problem is that its only picking on dd part.
With the latest regex i see following problems:-
....wasasa.org.pk fgf wawwwsasa.msn.com fgf
....ttrt .....ddd.dd www.iffn.pk fgf
www.ru ff www.ru.com fgfgf
It will stop matching anything after space e.g www.ru.com fgfgs. The regex should work with space and even without space.