FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » glob patterns
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
glob patterns [message #183294] Sun, 20 October 2013 04:58 Go to previous message
j is currently offline  j
Messages: 9
Registered: July 2011
Karma:
Junior Member
I don't understand when to use {},[] or () in php glob matching

I want to match one or more numbers, either an a,w or h, a dash and then
a string.

120a-some_string or 1400w-some_string or 7h-some_string...

Is it:

glob('+{0-9}@{a,h,w}-some_string,GLOB_BRACE);

or is it?:

glob('+[0-9]@[ahw]-some_string');

or something else?

Jeff
[Message index]
 
Read Message
Read Message
Previous Topic: alternative to fwrite?
Next Topic: Load Data from XML url
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 02:29:14 GMT 2024

Total time taken to generate the page: 0.04610 seconds