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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find All valid Guid(s)
Expression
[({]?(0x)?[0-9a-fA-F]{8}([-,]?(0x)?[0-9a-fA-F]{4}){2}((-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12})|(,\{0x[0-9a-fA-F]{2}(,0x[0-9a-fA-F]{2}){7}\}))[)}]?
Description
It matches all strings that the .NET Framework API "new Guid(string guid)" can recognize. A String that contains a GUID in one of the following formats ('d' represents a hexadecimal digit whose case is ignored):
Matches
ca761232ed4211cebacd00aa0057b223 | CA761232-ED42-11CE-BACD-00AA0057B223 | {CA761232-ED42-11CE-BACD-00AA0057B223} | (CA761232-ED42-11CE-BACD-00AA0057B223) | {0xCA761232,0xED42,0x11CE,{0xBA,0xCD,0x00,0xAA,0x00,0x57,0xB2,0x23}}
Non-Matches
Invalid guids
Author Rating: The rating for this expression. fancyf
Source www.jkxdl.cn
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: Invalid matches
Name: Vera Rindvieh
Date: 1/28/2015 1:52:45 AM
Comment:
Matches: 0D12F5547EB6-4726-9DDF-98BD35434005 (0D12F554-7EB6-4726-9DDF-98BD35434005} {0D12F554-7EB6-4726-9DDF-98BD35434005) {0D12F554-7EB6-47269DDF-98BD35434005} They're all invalid.


Title: Invalid matches
Name: Vera Rindvieh
Date: 1/28/2015 1:51:10 AM
Comment:
Matches: 0D12F5547EB6-4726-9DDF-98BD35434005 (0D12F554-7EB6-4726-9DDF-98BD35434005} {0D12F554-7EB6-4726-9DDF-98BD35434005) {0D12F554-7EB6-47269DDF-98BD35434005} They're all invalid.


Title: Invalid matches
Name: Vera Rindvieh
Date: 1/28/2015 1:51:01 AM
Comment:
Matches: 0D12F5547EB6-4726-9DDF-98BD35434005 (0D12F554-7EB6-4726-9DDF-98BD35434005} {0D12F554-7EB6-4726-9DDF-98BD35434005) {0D12F554-7EB6-47269DDF-98BD35434005} They're all invalid.


Title: Invalid matches
Name: Vera Rindvieh
Date: 1/28/2015 1:50:54 AM
Comment:
Matches: 0D12F5547EB6-4726-9DDF-98BD35434005 (0D12F554-7EB6-4726-9DDF-98BD35434005} {0D12F554-7EB6-4726-9DDF-98BD35434005) {0D12F554-7EB6-47269DDF-98BD35434005} They're all invalid.


Title: It matches invalid regexes
Name: Vera Rindvieh
Date: 1/28/2015 1:47:13 AM
Comment:
The specified regex matches: (0D12F554-7EB6-4726-9DDF-98BD35434005} with an round opening brace and a curly closing brace.


Title: It matches invalid regexes
Name: Vera Rindvieh
Date: 1/28/2015 1:46:55 AM
Comment:
The specified regex matches: (0D12F554-7EB6-4726-9DDF-98BD35434005} with an round opening brace and a curly closing brace.


Title: Software engineer
Name: varun
Date: 7/29/2008 9:18:21 AM
Comment:
That's working perfectly fine.


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