Negative Lookbehind Using Windows Scripting Host

M

mail

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top