Help for this page

Select Code to Download


  1. or download this
    \d - matches 0 .. 9
    (\d+) - means match at least 1 digit, could be more.
    [^ ] - means don't match space
    \S - Another way to match something that isn't a space
    
  2. or download this
    
    $line =~ /,?([A-Z]{3}\d{2}[A-Z]),/;