Skip to content

Commit

Permalink
BioTek: refine field and channel name regexes
Browse files Browse the repository at this point in the history
This allows a negative field index and more punctuation characters in the channel name.
  • Loading branch information
melissalinkert committed Jul 28, 2022
1 parent 34b6842 commit 9be8c76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public class BioTekReader extends FormatReader {
private static final Logger LOGGER =
LoggerFactory.getLogger(BioTekReader.class);
private static final String BIOTEK_MAGIC = "BTIImageMetaData";
private static final String WELL_REGEX = "([A-Z]{1,2})(\\d{1,2})_(\\d+)";
private static final String ALPHANUM = "([A-Za-z0-9 ]+)";
private static final String WELL_REGEX = "([A-Z]{1,2})(\\d{1,2})_(-?\\d+)";
private static final String ALPHANUM = "([A-Za-z0-9 ,\\[\\]]+)";
private static final String SUFFIX = ".tif[f]?";
private static final String TIFF_REGEX_A =
WELL_REGEX + "_(\\d+)_(\\d+)_" + ALPHANUM + "_(\\d+)" + SUFFIX;
Expand Down

0 comments on commit 9be8c76

Please sign in to comment.