resistance has asked for the wisdom of the Perl Monks concerning the following question:
where:c:\windows\folder.exe with .exe\our.exe prog.com -par1 /param2.exe
of course it wasn't real example but its easy possible to construct.c:\windows\ -folder folder.exe with .exe\ - folder with blanks in his name our.exe prog.com - the program with blanks in his name -par1 /param2.exe -parameters
but this regexp fail with such extreme example.=~/(.+?\.\w{3})( +)(.+)/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using regex to separate parameters
by ikegami (Patriarch) on Jul 06, 2008 at 14:08 UTC | |
by resistance (Beadle) on Jul 06, 2008 at 14:26 UTC | |
by ikegami (Patriarch) on Jul 06, 2008 at 18:20 UTC | |
by resistance (Beadle) on Jul 06, 2008 at 18:38 UTC | |
by ikegami (Patriarch) on Jul 06, 2008 at 19:03 UTC | |
| |
by ikegami (Patriarch) on Jul 06, 2008 at 17:57 UTC | |
by resistance (Beadle) on Jul 06, 2008 at 18:14 UTC | |
by ikegami (Patriarch) on Jul 06, 2008 at 18:17 UTC | |
|
Re: Using regex to separate parameters
by Anonymous Monk on Jul 06, 2008 at 15:20 UTC |