Help for this page

Select Code to Download


  1. or download this
    perl -wle '$foo = "a hello w"; $foo = $foo =~ s/(?=.*(hello)).*/$1/sr;
    + print $foo'
    
  2. or download this
    hello
    
  3. or download this
    ...; print $foo =~ s/(?=.*(hello)).*/$1/sr;
    
  4. or download this
    ...; $foo =~ /hello(?{ $foo = $& })/; print $foo