in reply to Using regex to separate parameters
"c:\windows\folder.exe with .exe\our.exe prog.com" -par1 /param2.exe
By ambiguous, I mean there's no regexp pattern that will always work, so whatever solution we provide will be wrong. For example, if I give
/^(.*) -/
to extract the path, it'll fail for
c:\files - work\foo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using regex to separate parameters
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 resistance (Beadle) on Jul 06, 2008 at 19:29 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 |