Regular expression for ipv4 and ipv6?

This regular expression is validation for ipv4 and for ipv6.

Here is an example of data that passes this regular season.


But the regular season does not pass validation for the address where such prefix is used.
For example, here

How to add a possibility to enter a prefix?
June 7th 19 at 14:53
0 answer

Find more questions by tags JavaScriptRegular expressions