Help for this page

Select Code to Download


  1. or download this
    $string = "This is barney rubble and his friends joe rockhead and fred
    + flintstone";
    $string =~ /(?=.*fred (\w+))?(?=.*barney (\w+))?(?=.*joe (\w+))?/;
    ...
    print "$company\n"
    
    # "flintstone_rubble_rockhead_inc"
    
  2. or download this
    $string = "This is bLarney rubble and his friends joe rockhead and fre
    +d flintstone";
    $string =~ /(?=.*fred (\w+))?(?=.*barney (\w+))?(?=.*joe (\w+))?/;
    ...
    print "$company\n"
    
    # "flintstone__rockhead_inc"