Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


mdawson
2014-07-18T16:06:14Z
I'm running VC 7.1.8. I have a List Folders task, include sub folders is checked, and Is Regex is checked for the include folder mask with the following regular expression (list all child folders named either logs, final, or files).

^(logs|final|files)$

This works and returns only one these sub folders, but only the ones that are lowercase even though the case sensitive option is NOT checked. I tried adding \c in the expression but received parse errors in the Test window and then I found that .NET doesn't recognize this option. So, I tested the pattern in LinqPAD with RegexOptions.IgnoreCase and that works. So it seems there's something with the task. I think I ran across this before in another File task, but I don't remember which one and couldn't spend much time digging before.

Is anyone else seeing the same thing?

Sponsor
Forum information
mdawson
2014-07-18T16:11:49Z
Also, I tested case variations and received different results that matched accordingly, such as

^(Logs|Final|Files)$

^(LOGS|FINAL|FILES)$


So it certainly seems to be case sensitive even though the option is not checked.
Support
2014-07-21T07:23:17Z
The checkbox is only referring to the file mask when using a normal wild card file mask - not regex. Regex override with the actual regex string you use. In a future version we will disable that checkbox when selecting regex.

Thanks!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mdawson
2014-08-26T14:44:53Z
I found the answer: ?i:

Old pattern: ^(logs|final|files)$
New pattern: (?i:^(logs|final|files)$)


One other thought would be if you're using the standard .NET Regex class, then looking at the checkbox to add RegexOptions.IgnoreCase when instantiating it.
Support
2014-08-26T19:29:05Z
Originally Posted by: mdawson 

I found the answer: ?i:

Old pattern: ^(logs|final|files)$
New pattern: (?i:^(logs|final|files)$)


One other thought would be if you're using the standard .NET Regex class, then looking at the checkbox to add RegexOptions.IgnoreCase when instantiating it.




Great, we are now, from next version, using the Case sensitive in that RegEx. If unchecked we will use RegexOptions.IgnoreCase.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top