All pastes #108313 Raw Edit

Unnamed

public java v1 · immutable
#108313 ·published 2006-07-31 12:34 UTC
rendered paste body
    public static List tokenize(String input) {        Matcher matcher = Pattern.compile(JAVASCRIPT_TOKEN_REGEXP).matcher(input);        List result = new ArrayList();        while (matcher.find()) {            String token = matcher.group();            if (!token.trim().equals("")) {                result.add(token);            }        }        return result;    }