aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/ec/ECConstants.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/connector/ec/ECConstants.java')
-rw-r--r--main/src/cgeo/geocaching/connector/ec/ECConstants.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/connector/ec/ECConstants.java b/main/src/cgeo/geocaching/connector/ec/ECConstants.java
new file mode 100644
index 0000000..7c02d8e
--- /dev/null
+++ b/main/src/cgeo/geocaching/connector/ec/ECConstants.java
@@ -0,0 +1,19 @@
+package cgeo.geocaching.connector.ec;
+
+import java.util.regex.Pattern;
+
+/**
+ * For further information about patterns have a look at
+ * http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html
+ */
+public final class ECConstants {
+
+ public static final Pattern PATTERN_LOGIN_NAME = Pattern.compile("\"mod_login_greetingfrontpage-teaser\">Hallo, ([^<]+)</span>");
+ public static final Pattern PATTERN_LOGIN_SECURITY = Pattern.compile("<input type=\"hidden\" name=\"return\" value=\"(.*)\" />[^<]*<input type=\"hidden\" name=\"(.*)\" value=\"1\" />");
+ public static final Pattern PATTERN_CACHES_FOUND = Pattern.compile("Gefundene Caches.*?>([0-9]+)<");
+
+ private ECConstants() {
+ // this class shall not have instances
+ }
+
+}