Tags: regex,mac

Sort by: Date / Title /

  1. 1 year 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}$

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