From 372a0e9f4c1833ea594ae02a0a3aaee663d48847 Mon Sep 17 00:00:00 2001 From: davhojt Date: Mon, 2 May 2022 15:45:54 +0100 Subject: [PATCH] docs(greedy-url): correct grammar --- subjects/greedy-url/README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/subjects/greedy-url/README.md b/subjects/greedy-url/README.md index 08abdf9f7..c2e7a46e3 100644 --- a/subjects/greedy-url/README.md +++ b/subjects/greedy-url/README.md @@ -2,14 +2,20 @@ ### Instructions -Write 3 functions : +Create 3 functions, which accept a `string` which we'll refer to as the `dataSet`. Your function should return an array of strings. -- `getURL` that returns an array with all valid URLs present in a data-set, http and https -- `greedyQuery` that returns URL with at least 3 or more parameters from all URLs that contain a query. -- `notSoGreedy` that returns URL with at least 2, but not more then 3 parameters from all URLs that contain a query. +- `getURL`: returns all URLs present in the `dataSet`. +- `greedyQuery`: returns URLs from the `dataSet`, with at least 3 query parameters. +- `notSoGreedy`: returns URLs from the `dataSet`, with at least 2, but not more then 3 query parameters. -You can search for greedy quantifiers for help +Example `dataSet`: +``` +qqq http:// qqqq q qqqqq https://something.com/hello qqqqqqq qhttp://example.com/hello?you=something&something=you +``` -### Notions +> Only http and https URLs are valid. + You can search for greedy quantifiers for help. -- [github.com/ziishaned/learn-regex](https://github.com/ziishaned/learn-regex) +###greed Notions + +- [Learn RegEx](https://github.com/ziishaned/learn-regex)