public static int matchOne(final String src, final String... patterns) {
    """
	Matches string to at least one pattern.
	Returns index of matched pattern, or <code>-1</code> otherwise.
	@see #match(CharSequence, CharSequence)
    """
		for (int i = 0; i < patterns.length; i++) {
			if (match(src, patterns[i])) {
				return i;
			}
		}
		return -1;
	}
public static int matchOne(final String src, final String... patterns) {
		for (int i = 0; i < patterns.length; i++) {
			if (match(src, patterns[i])) {
				return i;
			}
		}
		return -1;
	}
public static int matchOne ( final String src , final String ... patterns ) { for ( int i = 0 ; i < patterns . length ; i ++ ) { if ( match ( src , patterns [ i ] ) ) { return i ; } } return - 1 ; }
Matches string to at least one pattern.
Returns index of matched pattern, or <code>-1</code> otherwise.
@see #match(CharSequence, CharSequence)
Matches string to at least one pattern . Returns index of matched pattern or <code > - 1< / code > otherwise .