Help for this page

Select Code to Download


  1. or download this
    my $var = "1 word here another word";
    my($head, $tail) = $var =~ /( (?:\w+[ ]?){3} ) [ ] (.*)/x;
    ...
    
    head - [1 word here]
    tail - [another word]
    
  2. or download this
    print "yup" if "12 buckle my shoe" =~ /^\d{2}\b/;
    
    __output__
    
    yup