When I try to filter the files with the expression
^[\w\s.]+(?:\s-\s)[^-]*
It should allow: E.G. Example - Matching should work.txt
But it should not allow: I.E. Another example - This is ok - but now it should fail.txt
--------------- Regular expression breakdown -------------------
' Beginning of line or string
' Any character in this class: [\w\s.], one or more repetitions
' Match expression but don't capture it. [\s-\s]
' \s-\s
' Whitespace
' -
' Whitespace
' Any character that is NOT in this class: [-], any number of repetitions
----------------------------------------------------------------