All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.util.RegexMatcher Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
package liquibase.util;

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

/**
 * Check that a text matches an array of regular expressions.
* * @author lujop */ public class RegexMatcher { private String text; private Pattern []patterns; private boolean allMatched; /** * Constructs the matcher * @param text Text to search for mathces * @param regexToMatch Regex to match */ public RegexMatcher(String text,String [] regexToMatch) { assert (text != null) && (regexToMatch != null); this.text=text; patterns=new Pattern[regexToMatch.length]; for(int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy