Hi all, anybody know what I'm doing wrong or how to make this work?
I have an anonymous inner class to filter a directory of files based on a regex
pattern inputted from a system property.
usage in main:
strPattern is declared in the outer class:
and initiated in the constructor
now here's the weird part, if I use a constant declared in the outer class
or hardcode the
string, it works
I've tried using/not using final keyword, using/not using Pattern compiler
no go- as long as I try to use a variable regex I don't get a match.