Open RexYuan opened 8 years ago
2. First of all, this catches all ASCII symbols.
[!-\/:-@[-`{-~]
1. 參考 Dictionary.com 的 source code 注意到這行
<link rel="search" type="application/opensearchdescription+xml" href="http://dictionary.reference.com/opensearch_desc.xml" title="Dictionary.com"/>
進入 http://dictionary.reference.com/opensearch_desc.xml 內容是
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Dictionary.com</ShortName>
<Description>Look it up at Dictionary.com</Description>
<Image height="16" width="16" type="image/x-icon">
http://static.sfdict.com/en/i/dictionary/newserp/favicon.ico
</Image>
<Url type="text/html" method="get" template="http://dictionary.reference.com/browse/{searchTerms}?r=75&src=ref&ch=dic"/>
</OpenSearchDescription>
-
for without)