How to tell ack tool to ignore case under REGEX
I am working on a code base which has lot of source code files. So, i end up using ack (ack 1.94 -- better than grep, a source code search tool for programmers) tool for searching the filename i need to open.
My source code is arranged in the following manner
Now i need to list the files whose name is "sample" ignoring the case. When i look at the man page of ACK command i can see that ignore case can't be used with -g option.
I am not comfortable with REGEX. Can some one help me in forming the REGEX so that i can list all the files with name "sample" regardless of case.
Print files where the relative path + filename matches REGEX. This option is a convenience shortcut for -f -G REGEX.
The options -i, -w, -v, and -Q do not apply to this REGEX.