in reply to Regex to match command line arguments
I'm not sure your second example data makes sense. But then, I am not familiar with java VM. On a side note, if you are dealing with a number of arguments, a more general solution would be:
#If they arguments are in @ARGV while (shift){ ($arg,$val)=split /=/; $args{$arg}=$val; }
Now you will find all your command line arguments in the hash %args with the argument name as the key, like this:
'-Dname1' => 2 '-Dname2.3' => "anything" '-Djetty.home' => 'c:\a\b\c'
Hope that's what you are looking for.
|
|---|