Regular expression on a URL

Posted by alphaexe on Stack Overflow See other posts from Stack Overflow or by alphaexe
Published on 2010-06-11T14:58:14Z Indexed on 2010/06/11 15:03 UTC
Read the original article Hit count: 196

Filed under:

I need to be able to catch when the URL contains a image of multiple file types or follow this syntax.

http://localhost:8080/fdlic-web/webpic/101

Here is what i have so far.

(.*)(jpg|gif|png|bmp|jpeg|webpic/(\d+))$

© Stack Overflow or respective owner

Related posts about regex