I already gone through some question in StackOverflow regarding this but nothing helped much in my case.
I want to restrict the user to provide a filename that shoul
use this regular expression ^[a-zA-Z0-9._ -]+$
^[a-zA-Z0-9._ -]+$