Help for this page
$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)='';
$out=substr $in, index( $in, '_') + 1; substr( $out, $us = index( $out, '/') + 1, index( $out, '_')- $us + 1) +='';