Browse Source

docs(greedy-url): correct grammar

1122-buz-zinga
davhojt 2 years ago committed by Dav Hojt
parent
commit
372a0e9f4c
  1. 20
      subjects/greedy-url/README.md

20
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)

Loading…
Cancel
Save