6364656667686970717273
java.util.regex.Matcher m = octothorp.matcher( line ); if( m.find() ){ System.out.println( m.replaceAll( "" ) ); continue; } Base b = Base.DECIMAL; m = hex.matcher( line ); if( m.find() ){ line = m.replaceAll( "" ); b = Base.HEXADECIMAL; }