4 ms·
What's wrong with /([\w-]+:\/\/[^\s]+)/gi It's not fancy but it will essentially match any url
by cobalt 12y ago
What's wrong with /([\w-]+:\/\/[^\s]+)/gi
It's not fancy but it will essentially match any url
- zAy0LfpBZLC8mAC 12y ago/./ will also match any URL. The point is to reject non-URLs.
- mathias 12y agoYes, to reject non-URLs and also some URLs that are technically valid but that I want to explicitly disallow anyway.