2021-12-04

Filter domains without path and http/https with grep

i wonder how can i filter just domains (without protocol:// and /path). Example i need something like this: echo "Hi it's my web site (https://1stsubdomain.2ndsubdomain.example.com/welcome/)" | grep "some regex"

I want get this output: Hi it's my web site (1stsubdomain.2ndsubdomain.example.com)

And domain can be with 3 subdomains or just 1 or without

Extensions i want: .com|net|org|ru|xyz|co|tr|uk|vn|intedu|mil|lnc|is|dev|travel|info|biz|email|build|agency|zone|bid|condos|dating|events|maiso|partners|properties|productions|social|reviews|techgov|au



from Recent Questions - Stack Overflow https://ift.tt/3olndiF
https://ift.tt/eA8V8J

No comments:

Post a Comment