●Regular Expressionの使用環境
PowerShell 7.2.4

●検索か置換か?
置換(-replaceもしくは[regex]::Replace)
もしくは抽出(-match)
●説明
ドメインからサブドメインを取り除いた値が欲しい

●対象データ
www.example.com
hoge.www.example.com
hoge.hoge.www.example.com

●希望する結果
example.com
example.com
example.com

お願いします