in progress...
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Mon, 25 Apr 2011 03:06:14 +0000 (03:06 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Mon, 25 Apr 2011 03:06:14 +0000 (03:06 +0000)
forester/java/src/org/forester/ws/uniprot/UniProtWsTools.java

index dd8d760..96aeb9d 100644 (file)
@@ -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 {