相关疑难解决方法(0)

44
推荐指数
6
解决办法
7万
查看次数

Clojure Regex:如果string是一个URL,则返回字符串

如何在Clojure中返回给定字符串的有效URL.

 (re-matches #"????" "www.example.com"))
 (re-matches #"????" "http://example.com"))
 (re-matches #"????" "http://example.org")) // returns "http://example.org"
 (re-matches #"????" "htasdtp:/something")) // returns nil
Run Code Online (Sandbox Code Playgroud)

regex clojure clojurescript

2
推荐指数
1
解决办法
863
查看次数

标签 统计

clojure ×1

clojurescript ×1

java ×1

regex ×1

url ×1