RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Command line parsing for command and parameter
Expression
(?<cmd>^"[^"]*"|\S*) *(?<prm>.*)?
Description
This will parse a command line for the command and parameter
Matches
"c:\program files\myapp\app.exe" p1 p2 "p3 with space"|app.exe p1 p2 "p3 with space"|app.exe
Non-Matches
none
Author Rating: The rating for this expression. J H
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials