mirror of https://github.com/01-edu/public.git
7db94af256 | ||
---|---|---|
.. | ||
README.md |
README.md
Greedy Url
Instructions
Create 3 functions, which accept a string
which we'll refer to as the dataSet
. Your function should return an array of strings.
getURL
: returns all URLs present in thedataSet
.greedyQuery
: returns URLs from thedataSet
, with at least 3 query parameters.notSoGreedy
: returns URLs from thedataSet
, with at least 2, but not more then 3 query parameters.
Example dataSet
:
qqq http:// qqqq q qqqqq https://something.com/hello qqqqqqq qhttp://example.com/hello?you=something&something=you
Only http and https URLs are valid. You can search for greedy quantifiers for help.