M
Hello,
I am trying to use regular expressions to scan a subdirectory structure and
run sfv and parity file checks on the directory. However, I am having an issue
with my current code using regular expressions to find par2 files. Multiple
par2 files are created for an archive in the following format:
test.par2
test.vol000+01.par2
test.vol000+03.par2
test.vol000+07.par2
and so on...
I only want to select the files name "test.par2" using regular expressions.
WSH doesn't seem to have a negative lookbehind function as mentioned here:
http://techrepublic.com.com/5100-6329_11-5089453-2.html
Negative lookbehind (?<! … ). The match will continue only if the
subexpression is not found to the left. For example, (?<!\$)\d+\.\d+ will
match those numbers with decimals that are not following a literal dollar
sign.
How can I get this to work?
Thanks,
Brian
I am trying to use regular expressions to scan a subdirectory structure and
run sfv and parity file checks on the directory. However, I am having an issue
with my current code using regular expressions to find par2 files. Multiple
par2 files are created for an archive in the following format:
test.par2
test.vol000+01.par2
test.vol000+03.par2
test.vol000+07.par2
and so on...
I only want to select the files name "test.par2" using regular expressions.
WSH doesn't seem to have a negative lookbehind function as mentioned here:
http://techrepublic.com.com/5100-6329_11-5089453-2.html
Negative lookbehind (?<! … ). The match will continue only if the
subexpression is not found to the left. For example, (?<!\$)\d+\.\d+ will
match those numbers with decimals that are not following a literal dollar
sign.
How can I get this to work?
Thanks,
Brian