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.

18 lines
619 B

## Valid Ip
4 years ago
### Instructions
4 years ago
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.
4 years ago
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.
4 years ago
> For this task, you **only** need to concern yourself with `<host>` and `<port>`. Don't worry about `<scheme>` or anything else.
4 years ago
### Notions
- [Learn RegEx](https://github.com/ziishaned/learn-regex)