Help for this page

Select Code to Download


  1. or download this
    $in='1_abc/2_deg/bla_30_31_blah';
    
    ...
    #This works if the second number is a single digit 
    $out=substr $in, index( $in, '_') + 1;
    substr( $out, index( $out, '_') - 1, 2)='';
    
  2. or download this
    $out=substr $in, index( $in, '_') + 1;
    substr( $out, $us = index( $out, '/') + 1, index( $out, '_')- $us + 1)
    +='';