Query, validate and parse URLs into its components via the URL Parse API. Accessible using GET and POST, returns JSON response. Free of charge. Maintained by ex-Google engineer Fili.
@itspablo Appreciate your feedback! I understand why it may seem like that, however I don't use this method/regex, but rather a custom-build regex and also support IDNA and TLD detection (including 2nd, 3rd and 4th level TLD detection where needed) as well as subdomain detection. Something the link you provided does not. Lastly, I provide a programmatic approach using a REST API without the need for a browser (less resource dependent). Hope you like it though :)
@itspablo Just to follow up on this, compare the output at https://api.urlparse.com/v1/quer... with "new URL('https://1.2.3.example.co.uk/')" in the browser console. Note there is one more field that may be of interest: is_valid, which checks if a URL is valid against all TLDs. Hope this clarifies :)
HTTP Response API
HTTP Response API
HTTP Response API
HTTP Response API
Zorp
HTTP Response API