|
-
Jul 23rd, 2007, 03:37 AM
#1
Thread Starter
Hyperactive Member
Re: exclude folder or files
hello!
just one more question i just want also to exlude the files *.avi.
how?
*****************
VB6,PHP,VS 2005
-
Jul 23rd, 2007, 08:44 AM
#2
Re: exclude folder or files
I'm no Regex expert, but this one seems to match:
-
Jul 23rd, 2007, 06:33 PM
#3
Thread Starter
Hyperactive Member
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
-
Jul 23rd, 2007, 10:31 PM
#4
Addicted Member
Re: exclude folder or files
 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...
-
Jul 24th, 2007, 01:32 AM
#5
Thread Starter
Hyperactive Member
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
-
Jul 24th, 2007, 08:13 AM
#6
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
-
Jul 24th, 2007, 07:18 PM
#7
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|