2
Reply

Regex to get filename other than .c and .h file

sampath meka

sampath meka

Dec 31 2014 6:44 AM
836
 
Hello All,

                             My question is i have following file names which should be processed based on the extension type using regular expression only.                      

myname.csi
myname.ctr
myname.hsi
myname.htr
myname.c
myname.h


 For the above strings if we apply regular expression the output should be

myname.csi
myname.ctr
myname.hsi
myname.htr


 I want only file name other than extension .c and .h only

Thanks & Regards,
Sampath 

Answers (2)