echo http://example.com/index.PHP | awk -F/ '{print $3}'
OUTPUT:example.com
原文链接:https://www.f2er.com/regex/357111.html