mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
714 B
714 B
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.