sampath meka

sampath meka

  • NA
  • 94
  • 31.2k

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

Dec 31 2014 6:44 AM
 
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)