Help for this page

Select Code to Download


  1. or download this
    # untested
    for(@str) {
       /^(?:(\w{2}_[a-z0-9]+)|([a-z0-9]+)_)/i and print $1 || $2, "\n";
    }
    
  2. or download this
    for(@str) {
        /^(\w{2}_[a-z\d]+|[a-z\d]+(?=_))/i and print $1, $/;
    }