This question already has an answer here:
i am trying to write a regular expression for validating IPv6 address,IPv4 address and host name.
My regular expression is : ^[a-zA-Z0-9./_:-]{0,128}$
it is validating everything except the ipv6 address like below :
2001:1000:1000:1000:20c:29ff:feee:a40e/64
if i remove /64, it works but with /64 its not working, need help as i am new to regular expressions.
</div>