import java.util.Map;
import java.util.StringTokenizer;
import java.util.Vector;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
import jalview.analysis.AlignSeq;
import jalview.api.FeatureSettingsModelI;
}
else
{
+ Pattern possibleIds = Pattern.compile("[A-Za-z0-9_]+");
// generate queries from sequence ID string
- StringTokenizer st = new StringTokenizer(sequence.getName(),
- "|");
- while (st.hasMoreTokens())
+ Matcher tokens = possibleIds.matcher(sequence.getName());
+ int p=0;
+ while (tokens.find(p))
{
- String token = st.nextToken();
+ String token = tokens.group();
+ p = tokens.end();
UPEntry[] presp = null;
if (picrClient != null)
{