last modified by zhoutianju , 2023-06-02 00:54:42

常用正则表达式

IP 或域名

^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$

demo: https://regexr.com/3dt4r



Copyright © 2023 zhoutianju.
All rights reserved.

results matching ""

    No results matching ""