Actually, I see that ``mylib-0.1-nightly.jar`` wouldn't be a match for the regular expression. I still think it's better to play safe and catch the exception, but since I can't find a counter-example, I'll let you decide whether this is worth.