常用正则表达式

1、ip

/^((25[0-5]|2[0-4]d|[01]?dd?)($|(?!.$).)){4}$/
原文地址:https://www.cnblogs.com/Zting00/p/7497632.html