Skip to content
Snippets Groups Projects
Commit cc7f51aa authored by Sascha Steinbiss's avatar Sascha Steinbiss
Browse files

Merge pull request #207 from satta/tritryp_uc

simplify regex for user comment scraping
parents 7bae7459 df30c3ed
No related branches found
No related tags found
No related merge requests found
...@@ -906,7 +906,7 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements ...@@ -906,7 +906,7 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements
Set<String> set = new HashSet<String>(); Set<String> set = new HashSet<String>();
if (values != null && values.size() > 0) { if (values != null && values.size() > 0) {
for (int value_index = 0; value_index < values.size(); ++value_index) { for (int value_index = 0; value_index < values.size(); ++value_index) {
String regex = "tritryp_uc[:=]\"?([^\";]+)"; String regex = "tritryp_uc[:=]\"?([a-zA-Z0-9]+)";
Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE); Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(values.elementAt(value_index)); Matcher matcher = pattern.matcher(values.elementAt(value_index));
while (matcher.find()) { while (matcher.find()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment