All pastes #257053 Raw Edit

Untitled

public text v1 · immutable
#257053 ·published 2006-11-24 22:42 UTC
rendered paste body
 private String dobetween(String begin, String end, String source){
        String sourceout;
        source = source.replace("\n", "");
        source = source.replace("\r\n", "");
        if(source.contains(begin) && source.contains(end)){
         sourceout = source.substring(source.indexOf(begin), source.indexOf(end));
        } else { sourceout = ""; }
        return(sourceout);
    }