in reply to Regex to match command line arguments

If you're just trying to extract the value of the parameter -Djetty.home, then this will work:
/-Djetty\.home=(?:(:?"(.*?)")|(\S*))/;
but with the caveat that the result (the value of the param) is in $+, not in $1.

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.