-
Incident report
-
Resolution: Won't fix
-
Minor
-
None
-
4.0.4
-
None
I have a directory structure like:
d:\directory\4567\file.name d:\directory\1234\file.name d:\directory\1\file.name
I want the regex to count the occurrences of "file.name" within sub-directories who's name length is > 1. So in the above example the count should be 2.
Here is what i tested with.
This did not work/produce any count:
vfs.dir.count[d:\directory\, "\d{2,}\\file\.name"]
This did not work either:
vfs.dir.count[d:\directory\, "\d{2,}"]
This worked but counted all contents of the directories.
vfs.dir.count[d:\directory\, "[0-9]{2,}"]
This did not work:
vfs.dir.count[d:\directory\, "[0-9]{2,}\\file\.name"]
This worked but gives me one more count than i want.
vfs.dir.count[d:\directory\, "file\.name"]
So can someone explain why the below examples don't work ?
"\d{2,}\\file\.name" "[0-9]{2,}\\file\.name"
Thank you.