Re: Regular Expression to validate file extension
From: Chris Kennedy (chrisknospam_at_cybase.co.uk)
Date: 06/18/04
- Next message: Mythran: "Re: Global.asax or web.config"
- Previous message: Ryan Ternier: "Close a Pop up window with ASP.NET (VB)"
- In reply to: Kevin Spencer: "Re: Regular Expression to validate file extension"
- Next in thread: Kevin Spencer: "Re: Regular Expression to validate file extension"
- Reply: Kevin Spencer: "Re: Regular Expression to validate file extension"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Jun 2004 16:25:50 +0100
Sorry about repost but my news server sometimes gets confused and appends
the question to the wrong thread. I couldn't reply because I couldn't find
it. You can sometimes find it on Google but not always. Has question not
clarified things. I want an expression to check for a variable number of
expressions in the extension of a file path e.g. jpeg or jpg or gif. I hope
this clarifies things. Regards, Chris.
"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:uqerkXTVEHA.2840@TK2MSFTNGP11.phx.gbl...
> I responded to this exact same question yesterday.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "Chris Kennedy" <chrisknospam@cybase.co.uk> wrote in message
> news:#gaLiDRVEHA.1048@TK2MSFTNGP09.phx.gbl...
> > Does anyone know a regular expression that will validate the file
> extension
> > but also allow multiple file extensions if necessary. It also needs to
be
> > case insensitive. Basically, what I want is to validate a file input box
> to
> > check if the extension is the correct type, i.e. .doc for a Word
Document
> > etc. Also I would like to check multiple file types, for instance allow
a
> > gif or a jpeg or a jpg.
> >
> > Regards, Chris.
> >
> >
>
>
- Next message: Mythran: "Re: Global.asax or web.config"
- Previous message: Ryan Ternier: "Close a Pop up window with ASP.NET (VB)"
- In reply to: Kevin Spencer: "Re: Regular Expression to validate file extension"
- Next in thread: Kevin Spencer: "Re: Regular Expression to validate file extension"
- Reply: Kevin Spencer: "Re: Regular Expression to validate file extension"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|