A lightweight regular expression library for HTTP URLs.
- Support TypeScript
- Support ES5
- Less than 400 Bytes (not compressed)
yarn add http-url-regex
You can use these regular expressions.
url
(scheme
+domain
+path
)url_no_scheme
(domain
+path
)scheme
domain
path
See the spec for details: index.test.js