Results 1 to 11 of 11

Thread: [RESOLVED] exclude folder or files

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: exclude folder or files

    hello!
    just one more question i just want also to exlude the files *.avi.

    how?
    *****************
    VB6,PHP,VS 2005

  2. #2
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: exclude folder or files

    I'm no Regex expert, but this one seems to match:
    Code:
    \w[avi]$

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: exclude folder or files

    "\\w[avi]$" this works great, but i wonder why they implement this such kind of
    function... i can say that microsoft can create like this "*.avi" it is much easier...

    tnx for your help...
    *****************
    VB6,PHP,VS 2005

  4. #4
    Addicted Member effekt26's Avatar
    Join Date
    Nov 2006
    Posts
    138

    Re: exclude folder or files

    Quote Originally Posted by basti42
    "\\w[avi]$" this works great, but i wonder why they implement this such kind of
    function... i can say that microsoft can create like this "*.avi" it is much easier...

    tnx for your help...
    That is how regular expressions work...they are an extremly powerful tool...and can match against any possible string you need, which it why they look so complicated...

    however, im guessing the more you learn to use them and work with them, the simpler they become, just like most things...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: exclude folder or files

    "\\w[avi]$"
    any explanation? what are the meaning?

    1. w
    2. [avi] i know is the extension name
    3. $
    *****************
    VB6,PHP,VS 2005

  6. #6
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: exclude folder or files

    \w matches any word character.
    $ specifies that the match must occur at the end of the string.

    Here are all of the explanations:
    http://msdn2.microsoft.com/en-us/lib...fc(vs.80).aspx

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: exclude folder or files

    tnx a lot for the nfo.
    *****************
    VB6,PHP,VS 2005

Posting Permissions

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



Click Here to Expand Forum to Full Width