Regex to get filename other than .c and .h file
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
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sibeesh VenuRank #27 · 42.9K reputationPosted Dec 31, 2014, 2:02 AM EST
Why not simply use this:
You don't need regex for this.
If you absolutely want to use regex simply use
VulpesRank #55 · 29.2K reputationPosted Dec 31, 2014, 2:17 AM EST