Regular Expression for Extension of File
pI need 1 regular expression to put restriction on the file type using
it's extension. /p pI tried this for restricting file type of html,.class
etc/p ol licode/(\.|\/)[^(html|class|js|css)]$/i/code/li
licode/(\.|\/)[^html|^class|^js|^css]$/i/code/li /ol pI need to restrict
total 10-15 types of file.In my application there is a field for accepted
file type and according to the requirement i have file types which is tobe
restricted. so i need reg expression using negation of restrictred file
type only./p
No comments:
Post a Comment