Extract url from text: Difference between revisions

Jump to navigation Jump to search
m
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
Line 43: Line 43:
輸出:
輸出:
<pre>
<pre>
https://tw.news.yahoo.com/
https://tw.news.yahoo.com
</pre>
</pre>


說明:
說明:
# 網域指 <nowiki>http://</nowiki> 或 <nowiki>https://</nowiki> 開頭,在符號 {{kbd | key = <nowiki>/</nowiki>}} 前的那一段文字。因此規則改成找不是符號 {{kbd | key = <nowiki>/</nowiki>}} 的多個文字。{{kbd | key = <nowiki>[^/]+</nowiki>}}
# 網域指以 <nowiki>http://</nowiki> 或 <nowiki>https://</nowiki> 開頭,與相臨不是符號 {{kbd | key = <nowiki>/</nowiki>}} 的多個文字:{{kbd | key = <nowiki>[^/]+</nowiki>}}


== 擷取特定檔案類型的網址 ==
== 擷取特定檔案類型的網址 ==

Navigation menu