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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find GUID
Expression
(?i)^(?<brace>(?<curly>\{)|(?<round>\())?[\dA-F]{8}(?(brace)(?<sep>-)|(?<sep>-)?)(?:[\dA-Z]{4}(?(sep)-)){3}[\dA-F]{12}(?(curly)\})(?(round)\))$
Description
Matches all C # Guid ToString representationens except the hexadecimal notation.
Matches
ACFE7A48-717D-4345-90C6-E6BC568B2F32|{ACFE7A48-717D-4345-90C6-E6BC568B2F32}|(ACFE7A48-717D-4345-90C6-E6BC568B2F32)|ACFE7A48717D434590C6E6BC568B2F32
Non-Matches
(ACFE7A48-717D-4345-90C6-E6BC568B2F32}|{ACFE7A48-717D-4345-90C6-E6BC568B2F32)|{ACFE7A48-717D-434590C6-E6BC568B2F32}|{ACFE7A48717D434590C6E6BC568B2F32}|(ACFE7A48717D434590C6E6BC568B2F32)
Author Rating: The rating for this expression. Vera Rindvieh
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Wrong
Name: Wrong
Date: 8/14/2015 9:16:27 AM
Comment:
a-z is WRONG. A GUID only contains a-f / A-F


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