Tags: regex

Sort by: Date / Title /

  1. 7 months ago by teke
    Pour copier une ligne d'entrée de section en fin de section avec les marqueurs vi
    1. s/^\(# \([^{]*\){{{\(.*\)\)/\1\r\r\r# \/\2}}}\3/
  2. 9 months 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}$
  3. 9 months ago by henri
    1. while($addr !~ /^([O1]?\d\d?|2[0-4]\d|25[0-5])\.([O1]?\d\d?|2[0-4]\d|25[0-5])\.([O1]?\d\d?|2[0-4]\d|25[0-5])\.([O1]?\d\d?|2[0-4]\d|25[0-5])$/){
    2.                 print "Please give the IP address of the remote server:\n";
    3.                 $addr = get_answer();
    4.         }

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