src/edu/kit/informatik/Utilities.java
/**
     * Generates a matcher from a given pattern and string input
     * @param pattern the pattern to test against the input
     * @param input the input string
     * @return a matcher instance associated to the given pattern evaluated against the given input
     * @throws IllegalArgumentException if the input doesn't match the pattern
     */
Generates a matcher from a given pattern and string input
@param pattern the pattern to test against the input
@param input the input string
@return a matcher instance associated to the given pattern evaluated against the given input
@throws IllegalArgumentException if the input doesn't match the pattern
Generates a matcher from a given pattern and string input @param pattern the pattern to test against the input @param input the input string @return a matcher instance associated to the given pattern evaluated against the given input @throws IllegalArgumentException if the input doesn ' t match the pattern
public static Matcher matcher(final Pattern pattern, final String input) {
        final Matcher m = pattern.matcher(input);
        if (!m.matches())
            throw new IllegalArgumentException("no match available");
        return m;
    }
public static Matcher matcher ( final Pattern pattern , final String input ) { final Matcher m = pattern . matcher ( input ) ; if ( ! m . matches ( ) ) throw new IllegalArgumentException ( "no match available" ) ; return m ; }
Generates a matcher from a given pattern and string input
 @param pattern the pattern to test against the input
 @param input the input string
 @return a matcher instance associated to the given pattern evaluated against the given input
 @throws IllegalArgumentException if the input doesn't match the pattern
Generates a matcher from a given pattern and string input @param pattern the pattern to test against the input @param input the input string @return a matcher instance associated to the given pattern evaluated against the given input @throws IllegalArgumentException if the input doesn ' t match the pattern