Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Regular Coder
    Join Date
    May 2011
    Posts
    239
    Thanks
    1
    Thanked 56 Times in 55 Posts
    I'm not messing with you. PHP's glob uses libc's glob, which supports groups of characters. The code I used is the following:

    PHP Code:
    $imgs glob('L*[!p].jpg');
    print_r($imgs); 
    Attached Thumbnails Attached Thumbnails how to get all files in folder apart from the ones that end with a 'p'-screenshot.jpg  

  2. Users who have thanked gvre for this post:

    kbluhm (07-23-2013)

  3. #17
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tested the pattern and it worked.

  4. #18
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Holy crap how was I never aware of this? I'll have to look further into it. Many apologies.


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •