lsalas
06-09-2008, 10:47 PM
When using any of the methods which require a regular expression, a true valid regular expression must be used. The error "java.lang.RuntimeException: ?+* follows nothing in expression" is commonly encountered when trying to use an expression such as "*.txt" or "*" which are not valid regular expressions. Equivalent regular expressions that are valid are as follows:
".*\\.txt" - Gets all files ending in .txt extension
".*" - Gets all files
".*\\.txt" - Gets all files ending in .txt extension
".*" - Gets all files