RegularExpression.java [src/m/utils] Revision: default  Date:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package m.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 *
 * @author ktraff
 */
public class RegularExpression {
    
    public static boolean matches(String ptrn, String token) {
        Pattern pattern = Pattern.compile(ptrn);
        Matcher matcher = pattern.matcher(token);
        return matcher.find();
    }
    
}