@Nullable
    public static String getMatch(@Nullable final String data, final Pattern pattern, @Nullable final String defaultValue) {
        return getMatch(data, pattern, true, 1, defaultValue, false);
    }
Searches for the pattern pattern in the data. If the pattern is not found defaultValue is returned

@param data         Data to search in
@param pattern      Pattern to search for
@param defaultValue Value to return if the pattern is not found
@return defaultValue or the first group if the pattern matches (trimmed)
main/src/main/java/cgeo/geocaching/utils/TextUtils.java