Hello Guys,
I need your help.
I am having the information of the user.In this each user submits 6 documents.
The name of documents are like
username_A.pdf
username_B.pdf
username_A.jpg
username_B.jpg
username_thumb.jpg
username.doc
Now I want only username_A.jpg.The values for extensions are jpg,jpeg,JPG,JPEG.
So could any one help me please how to extract say _A.jpg from all the 6 documents.
I am using the following reg. expression.But it also matches for pdf.
Your help will be appriciated.PHP Code:preg_match("/_A\.[jpg|JPG|jpeg|JPEG]/",$file)
//also tried for
if(preg_match("/_A\.[(jpg)|(JPG)|(jpeg)|(JPEG)]/",$file))
Thanks,







Bookmarks