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.
|
|
|
## Valid Ip
|
|
|
|
|
|
|
|
### Instructions
|
|
|
|
|
|
|
|
Create a function named `findIP`, that returns an array of valid IP addresses from a given string. These addresses may or may not have a port.
|
|
|
|
|
|
|
|
For the IP part, the syntax will be as follows, where `x` is a number from 0-255. Values with leading zeros are not valid:
|
|
|
|
```
|
|
|
|
x.x.x.x
|
|
|
|
```
|
|
|
|
Don't forget to learn about the syntax of ports. But remember, the maximum TCP port number is 65,535.
|
|
|
|
|
|
|
|
> For this task, you **only** need to concern yourself with `<host>` and `<port>`. Don't worry about `<scheme>` or anything else.
|
|
|
|
|
|
|
|
### Notions
|
|
|
|
|
|
|
|
- [Learn RegEx](https://github.com/ziishaned/learn-regex)
|