From: cmzmasek@gmail.com Date: Mon, 25 Apr 2011 03:06:14 +0000 (+0000) Subject: in progress... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e47fb4d682262076a44ebb802276ae237ed4cf96;p=jalview.git in progress... --- 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 {