Tags: mac,regex

Sort by: Date / Title /

  1. 8 years ago by spirit
    ipv4:
    (([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])
    
    ipv6:
    ([A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}
    
    MAC:
    (([a-fA-F0-9]{1,2}-){5})([a-fA-F0-9]{1,2})
    
    FQDN:
    (([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])
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2099"></script>
  2. 11 years ago by spirit and saved by 1 other
    1. # Works with dash "-" and colon ":" as a separator
    2. # The ā€œ/iā€ modifier at the end makes it case-insensitive (Perl-like syntax)
    3. /^([0-9A-F]{2}[:-]){5}[0-9A-F]{2}$/i
    4.  
    5. # General syntax (match lower and upper case)
    6. ^([0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2}$
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/429"></script>

First / Previous / Next / Last / Page 1 of 1 (2 posteets)