Let's assume that we have the next directory structure:
/parentdir/
/childdir/
child_file1.txt
child_file2.jar
file1.txt
file2.txt
so, we get next full file names:
/parentdir/file1.txt
/parentdir/file2.txt
/parentdir/childdir/child_file1.txt
/parentdir/childdir/child_file2.jar
Which regular expression matches all of these files except for the last one with .jar extension?
Little clarification: expression can contain 'parentdir' string and '.jar' string, all other files and directories can have any names and extensions.