Receiving error java.lang.RuntimeException: ?+* follows nothing in expression
Posted by Van Glass on 27 August 2007 11:11 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

(213 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako fusion