Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ^(([a-zA-Z]:)|(\{2}w+)$?)(\(w[w].*))(.jpg|.JPG|.gif|.GIF|.doc|.DOC|.pdf|.PDF)$
  2.  
  3. ^.*.(jpg|JPG|gif|GIF|doc|DOC|pdf|PDF)$
  4.  
  5. (.*?).(jpg|gif|doc|pdf)$
  6.  
  7. ^.+.(?:(?:[dD][oO][cC][xX]?)|(?:[pP][dD][fF]))$
  8.  
  9. ^ = beginning of string
  10. .+ = at least one character (any character)
  11. . = dot ('.')
  12. (?:pattern) = match the pattern without storing the match)
  13. [dD] = any character in the set ('d' or 'D')
  14. [xX]? = any character in the set or none
  15. ('x' may be missing so 'doc' or 'docx' are both accepted)
  16. | = either the previous or the next pattern
  17. $ = end of matched string
  18.  
  19. .(?i:)(?:jpg|gif|doc|pdf)$
  20.  
  21. .(jpg|gif|doc|pdf)$
  22.  
  23. ValidationExpression="^.+.(([pP][dD][fF])|([jJ][pP][gG])|([pP][nN][gG])))$"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement