From e47fb4d682262076a44ebb802276ae237ed4cf96 Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Mon, 25 Apr 2011 03:06:14 +0000 Subject: [PATCH] in progress... --- forester/java/src/org/forester/ws/uniprot/UniProtWsTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forester/java/src/org/forester/ws/uniprot/UniProtWsTools.java b/forester/java/src/org/forester/ws/uniprot/UniProtWsTools.java index dd8d760..96aeb9d 100644 --- a/forester/java/src/org/forester/ws/uniprot/UniProtWsTools.java +++ b/forester/java/src/org/forester/ws/uniprot/UniProtWsTools.java @@ -51,7 +51,7 @@ public final class UniProtWsTools { // uniprot/expasy accession number format (6 chars): // letter digit letter-or-digit letter-or-digit letter-or-digit digit private final static Pattern UNIPROT_AC_PATTERN = Pattern - .compile( "^.*[^a-zA-Z0-9]?([A-NR-ZOPQ]\\d[A-Z0-9]{3}\\d)[^a-zA-Z0-9]?" ); + .compile( "^.*[a-zA-Z0-9]?([A-NR-ZOPQ]\\d[A-Z0-9]{3}\\d)[^a-zA-Z0-9]?" ); private final static boolean DEBUG = false; private static String encode( final String str ) throws UnsupportedEncodingException { -- 1.7.10.2