Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Writing some code that builds the VM args string for a java program. I'm completely regex ignorant, was wondering if someone could help...
Given a string containing the following:
-Dname1=2 -Dname2.3="anything" -Djetty.home=c:\a\b\c or -Dname1=2 -Dname2.3="anything" -jetty.home="c:\a\b\c"
What would be a pattern that matches:
-Djetty.home=anything_up_to-whitespace_or_eol or -Djetty.home="anything_up_to[" or eol]
make sense? Thanks! Geoff
update (broquaint): title change (was Regex match newbie)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex to match command line arguments
by broquaint (Abbot) on May 08, 2003 at 12:50 UTC | |
Re: Regex to match command line arguments
by Skeeve (Parson) on May 08, 2003 at 12:48 UTC | |
by Anonymous Monk on May 08, 2003 at 12:56 UTC | |
Re: Regex to match command line arguments
by jdporter (Paladin) on May 08, 2003 at 13:32 UTC | |
Re: Regex to match command line arguments
by pzbagel (Chaplain) on May 08, 2003 at 14:54 UTC | |
Re: Regex to match command line arguments
by LordWeber (Monk) on May 08, 2003 at 16:21 UTC |
Back to
Seekers of Perl Wisdom