Hi,
Is it possible by some form of regex to split particles using two elements of the path field in one routine?
Example blob/path template
<uid>_dataset01_<variable_substring_1>_0000_<variable_substring_2>.mrc
<uid>_dataset01_<variable_substring_1>_0001_<variable_substring_2>.mrc
<uid>_dataset01_<variable_substring_1>_0002_<variable_substring_2>.mrc
...
<uid>_dataset02_<variable_substring_1>_0000_<variable_substring_2>.mrc
<uid>_dataset02_<variable_substring_1>_0001_<variable_substring_2>.mrc
<uid>_dataset02_<variable_substring_1>_0002_<variable_substring_2>.mrc
...
<uid>_dataset03_<variable_substring_1>_0000_<variable_substring_2>.mrc
<uid>_dataset03_<variable_substring_1>_0001_<variable_substring_2>.mrc
<uid>_dataset03_<variable_substring_1>_0002_<variable_substring_2>.mrc
...
I have been doing this in two steps–splitting by “dataset” and then individually by secondary image index–before recombining, but I’m wondering if I’ve been missing a trick.
Cheers,
Yang