Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
URL は次のいずれかになります。
http://spappsdev.domain.com/sites/sitename/ http://spappsdev/sites/sitename/
両方の URL で機能する方法で「spappsdev」を抽出したいと思います。これは可能ですか?2 つの正規表現コマンドを実行する必要はありません。
以下を使用できます。
\bhttps?:\/\/([^\/.]+)
一致したグループ #1 を取得します