\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
匹配 | | (Something like ) | (wikipedia) | (Something like (wikipedia)) | | | <> | <>| , | ?p=364. | ?df.ws/123 | rdar://1234 | rdar:/1234 | :password@example.com:8080 |@example.com | @example.com:8080 |:password@example.com
不匹配 no_ws.example.com | no_proto_or_ws.com | /relative_resource.php
您可能感兴趣的文章: