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 Pattern Title
Expression
(?:\s*)(?<=[-|/])(?<name>\w*)[:|=]("((?<value>.*?)(?<!\\)")|(?<value>[\w]*))
Description
Command line named argument parser which allows quoted values and includes &quot;\&quot;&quot; escape for quotes in a quoted value. Non-quoted values can be letter, space or underscore only. Argument names can be letter, space or underscore only. Argument delimiter can be &quot;-&quot; or &quot;/&quot; and name-value separator can be &quot;:&quot; or &quot;=&quot;. All arguments must be named. Spaces are not allowed in
Matches
/a:"value" -big="this -test:1\"23 is & $#@ _ your life" -test=th_3
Non-Matches
this does not match
Author Rating: Not yet rated. Richard Hauer
   Displaying page 1 of 1 pages; Items 1 to 1

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