Help for this page

Select Code to Download


  1. or download this
    my @tests = (               
        'First case',           
    ...
        if ($t=~/(\d{4,}?)(.*)/)   { print "A: $1, $2\n"; }
        if ($t=~/(\d{4,}?)(.*?)$/) { print "B: $1, $2\n"; }
    }
    
  2. or download this
    A: , First case'
    
  3. or download this
    checking '123456789second & third case'
    A: 1234, 56789second & third case
    B: 1234, 56789second & third case
    
  4. or download this
    checking '123456789second & third case'
    A: 1234, 56789second & third case
    B: 123456789, second & third case
    
  5. or download this
    $ perl xxxyyyzzz.pl
    
    ...
    checking '123456789second & third case'
    A: 1234, 56789second & third case
    B: 1234, 56789second & third case