regex - Exclude Some File Types In Express JS Routing -


I want to match all / admin / * requests .png, .gif, .js file type, then this path Type:

  app.all ('/ admin *', Required login);  

But I can not exclude file types how can I exclude the .png, .gif, .js request from that routing?

how regex

\ / admin [^.] *.

^.] * \. Anything other than matches. followed by .

  • (? (?: Png | gif | js)) claims that regex is not followed < Code> png | Gif | Js


  • Comments

    Popular posts from this blog

    HTML/CSS - Automatically set height width from background image? -

    php - Mysql Show Process - Sleep Commands and what to do -

    c - What is the address of buf (the local variable in the main function)? -