Login  Register

Re: import image sequence with regexp

Posted by Michael Schmid on Jan 12, 2010; 5:33pm
URL: http://imagej.273.s1.nabble.com/import-image-sequence-with-regexp-tp3689743p3689744.html

Hi Madeline,

it seems that you have to add wildcards at the beginning and the end,  
otherwise it only matches if your regexp string includes the  
beginning and the end. It behaves as if ^ would be at the beginning  
and $ at the end - I don't know why.
So it should work with
.*beta3_[1-9]_P0101.*

Michael
________________________________________________________________

On 12 Jan 2010, at 18:08, Madeline Pool wrote:

> Hi,
>
> I'm trying to import an image sequence using a regular expression.  
> I'm trying to match
>
> beta3_[1-9]_P0101
>
> Typing beta3_ gives 80 matches, but once I type the [1-9], I get 0  
> matches. Is there a special syntax
> for the ImageJ expressions?
>
> I don't have screwed up files: beta3_1_P0101 gives 1 match so there  
> are files that should match
> beta3_[1-9]_P0101 present in that directory.
>
> I'm running ImageJ 1.42q on a Mac or a PC but have the same issue  
> on both machines.
> Thanks,
> Madeline