I try to check if string is Match GetInvalidFileNameChars()
i would like to use regex
So i put the chars of GetInvalidFileNameChars()
into a string and then check
if Regex.IsMatch(id, stringInvalidFileName)
I thought if id = "4711./"
then Regex.IsMatch(id, stringInvalidFileName)
should be true, but it's false
What is my mistake, why is it false ?! Thanks in advance