On Thursday 18 December 2008 00:31:56 Robert Bridge wrote:
> On Thu, 18 Dec 2008 00:17:18 +0200
>
> Alan McKinnon <alan.mckin...@gmail.com> wrote:
> > On Wednesday 17 December 2008 22:42:34 Robert Bridge wrote:
> > > Or use a wildcard based match.
> > >
> > > name????stat.text works, as would name*stat.text
> >
> > <pedantic>
> > name0[01][0-9]{2}stat.text
> > </pedantic>
> >
> > would be better still
>
> <nitpick>
> more typing...
> </nitpick>
>
> Depends on the measure, most times I have seen this kind of thing, the
> shorter pattern I had would have been "good enough". YMMV though, and I
> won't try to argue that yours is more precise.

Agreed :-)

A pattern like that in real life is likely to be something structured and 
*highly* unlikely to have odd file names thrown in.

But like all good sysadmin, I can't resist an opportunity to show off a little 
bit :-)



-- 
alan dot mckinnon at gmail dot com

Reply via email to