cmd: echo https://baidu.com | grep -E "^https?://[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" no any output but on the Ubuntu is work well.
cmd:
echo https://baidu.com | grep -E "^https?://[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$"
no any output
but on the Ubuntu is work well.