@Override
    @Nullable
    public String getGeocodeFromText(@NonNull final String text) {
        // Text containing a Geocode
        final String geocodeInText = TextUtils.getMatch(text, Pattern.compile(GCConstants.GEOCODE_PATTERN, Pattern.CASE_INSENSITIVE), false, "");
        if (canHandle(geocodeInText)) {
            return geocodeInText;
        }
        return null;
    }
Remove a cache from the favorites list.
<br>
This must not be called from the UI thread.

@param cache the cache to add
@return {@code true} if the cache was successfully added, {@code false} otherwise
main/src/main/java/cgeo/geocaching/connector/gc/GCConnector.java