zsh-users
 help / color / mirror / code / Atom feed
* FNG specify a count
@ 2012-05-14 15:53 zzapper
  2012-05-14 16:10 ` Jérémie Roquet
  0 siblings, 1 reply; 3+ messages in thread
From: zzapper @ 2012-05-14 15:53 UTC (permalink / raw)
  To: zsh-users

Hi


This is a PHP regexp  /^FLOW_([0-9]{3}).csv$/

I can simulate this in a brute fashion

> ls FLOW_[0-9][0-9][0-9].csv

Is it possible to use a count 3 in ZSH FNG?




-- 
zzapper
http://zzapper.co.uk/ Technical Tips


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FNG specify a count
  2012-05-14 15:53 FNG specify a count zzapper
@ 2012-05-14 16:10 ` Jérémie Roquet
  2012-05-14 18:56   ` zzapper
  0 siblings, 1 reply; 3+ messages in thread
From: Jérémie Roquet @ 2012-05-14 16:10 UTC (permalink / raw)
  To: zzapper; +Cc: zsh-users

Hi,

2012/5/14 zzapper <david@tvis.co.uk>:
> This is a PHP regexp  /^FLOW_([0-9]{3}).csv$/
>
> I can simulate this in a brute fashion
>
>> ls FLOW_[0-9][0-9][0-9].csv
>
> Is it possible to use a count 3 in ZSH FNG?

With extended globbing enabled, use FLOW_[0-9](#c3).csv

If you want between M and N numbers, use FLOW_[0-9](#cM,N).csv
If you want more than M numbers, use FLOW_[0-9](#cM,).csv
If you want less than N numbers, use FLOW_[0-9](#c,N).csv

# is the same as (#c0,)
## is the same as (#c1,)

Best regards,

-- 
Jérémie


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FNG specify a count
  2012-05-14 16:10 ` Jérémie Roquet
@ 2012-05-14 18:56   ` zzapper
  0 siblings, 0 replies; 3+ messages in thread
From: zzapper @ 2012-05-14 18:56 UTC (permalink / raw)
  To: zsh-users

=?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= wrote in news:CAFOazAP-J-
Ssj_u6pgcv5JFhTw5JLxu+s4wc8L-8yTCt53Wvhg@mail.gmail.com:

> Hi,
> 

> 

Thanks ... JWTDO

-- 
zzapper
http://zzapper.co.uk/ Technical Tips


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-14 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 15:53 FNG specify a count zzapper
2012-05-14 16:10 ` Jérémie Roquet
2012-05-14 18:56   ` zzapper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).