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.
16 lines
407 B
16 lines
407 B
4 years ago
|
## Valid Ip
|
||
5 years ago
|
|
||
4 years ago
|
### Instructions
|
||
5 years ago
|
|
||
4 years ago
|
Write a function called `findIP` that returns array of valid IPs, with or without a port, in a string passed as parameter
|
||
5 years ago
|
|
||
|
A valid IP has the following format :
|
||
|
|
||
|
- Must be in the form of xxx.xxx.xxx.xxx
|
||
|
- xxx is a number from 0-255
|
||
|
- You cannot have a 0 before a number, example 0xx
|
||
|
|
||
|
### Notions
|
||
|
|
||
4 years ago
|
- [github.com/ziishaned/learn-regex](https://github.com/ziishaned/learn-regex)
|