October 26th, 2012, 01:08 PM
RegEx driving me nuts - help needed
I am no expert in regular expressions - and have for hours tried several things in order to solve my problem without any luck....
I need a Regular Expression, that will match all files in a specific folder - except those ending in ".pst" ... And it must only match in the specified folder, not if a non-pst file exists in another folder..
MS Outlook default places PST files in c:/users/username/AppData/Local/Microsoft/Outlook/ - so the path must match ".*/Users/.*/AppData/Local/Microsoft/Outlook"
The files in that folder could be named:
In this case, the two files with the PST extension should not be listed/matched - but the file ending in .ost should....
Can anyone help me ?
Click Here to Expand Forum to Full Width