我想要的是给定域是否存在于字符串中。
我的问题的例子是
+----------------------------------------------+-----------------------+
| input | output |
+----------------------------------------------+-----------------------+
| http://www.example.com/questions/ask | match or true |
| http://example.com/check | match or true |
| http://www.google.com/ig/moduleurl |
| =http%3A%2F%2Fwww.example.com%2Fquestion | false |
| http://example.com/search/%25C3%25A9t%25 | match true |
+----------------------------------------------+-----------------------+
任何帮助都将是可观的
谢谢