Help for this page

Select Code to Download


  1. or download this
    'ab' =~ /a(z?)b/   # Returns ''.
    'ab' =~ /a(z)?b/   # Returns undef.
    
  2. or download this
    my @fizzbin = ( $string =~ m{
        (\w+)\n                     # Grab the title
    ...
        (\([^\n]+\))?\n             # Optional source
        Data:\s+([^\n]+)\n          # Grab the data
    }xmgs);
    
  3. or download this
    while (
       my ($title, $what, $date, $source, $data) = $string =~ m{
    ...
    
       ...
    }