Help for this page

Select Code to Download


  1. or download this
    
    $mystring = ($mystring =~ /(\w{3,})$/) ? $1 : '';
    Print “DOE”;
    
  2. or download this
    
    $mystring = ($mystring =~ / (\w{1,2}\s)(\w+)$/) ? $2 : '';
    Print “JOE”;
    
  3. or download this
    $mystring = ($mystring =~ /(\w{1}\s\w+)|(\w{3,})$/) ? $1 : '';
    
    print "\n $mystring\n";
    
  4. or download this
    #!/usr/bin/perl
    
    ...
      print "\n\n $2\n\n";
      
    }