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 2
Title Test Details composite format string arguments
Expression
(?<!(?<!\{)\{)\{(?<index>\d+)(,(?<alignment>\d+))?(:(?<formatString>[^\}]+))?\}(?!\}(?!\}))
Description
Get the arguments data of a .NET composite format string using explicit capture
Matches
{0} | {3,12:#} | {{{6}}}
Non-Matches
{{5}}
Author Rating: The rating for this expression. tjgalama
Title Test Details media type
Expression
^(application|audio|example|image|message|model|multipart|text|video)/[a-z0-9]+([.-][a-z0-9]+)*(\+(xml|json|ber|der|fastinfoset|wbxml|zip|cbor))?
Description
media-type within a content type value
Matches
image/png | application/pdf+zip | application/vnd.openxmlformats-officedocument.presentationml.presentation
Non-Matches
img/png | application-pdf | application/vnd.ms powerpoint
Author Rating: Not yet rated. tjgalama
   Displaying page 1 of 1 pages; Items 1 to 2

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