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
VulpesPosted Dec 31, 2014, 7:17 AM
Sibeesh VenuPosted Dec 31, 2014, 7:02 AM
Why not simply use this:
You don't need regex for this.
If you absolutely want to use regex simply use