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.
Web サイトの URL に一致する正規表現を作成しようとしています。どうやら
(http:\/\/www.)([a-zA-Z0-9])(\.[a-zA-z])\/"\s
動作しません。URL は で始まるhttp://www.必要があり、最大 1 つ以上の英数字を使用できます。
http://www.
Google に「regular expression url」と入力して、最初の結果をクリックしてみてはどうでしょうか。
URL の正規表現
Apache Commons の UrlValidator を使用します。
http://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validator/UrlValidator.html