CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 regular expression for image name

Print topic Send  topic

Author Message
lostboy
Posted: 09/13/2002, 9:00 AM

i am validating a text field entry to make sure it is a valid image name - something like blah_blah.gif, blah.gif or blah.jpg.

what is wrong with this expression?

^[a-z|_]+\.[gif|jpg]$

this works...

^[a-z|_]+\.gif$

but i can't seem to get the gif|jpg option working.
Woolley
Posted: 09/13/2002, 3:29 PM

\.(gif|jpg)

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.