I am still not clear with the requirement. Would it be possible for your provide example. like for "C:\test\test9\some9sample.log", result should be "C:\test\test9"
my backslashes were deleted..
i'd like to accept in the filename all characters except the backslash. so i thougt for something like
[\\][^\\]* for the last part. (i dont really understand