Skip to Content.
Sympa Menu

grouper-users - RE: UUID format

Subject: Grouper Users - Open Discussion List

List archive

RE: UUID format


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Chris Hyzer <>, Paul Gazda <>, Grouper Users Mailing List <>
  • Subject: RE: UUID format
  • Date: Tue, 16 Jun 2009 14:33:41 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

Sorry, this is obvious, but just since it is published on the list, let me add the start and end parts (^ and $):

 

… this regex 1.4.2+

 

^[a-f0-9]{32}$

 

If you want a regex that matches the old and new, use this:

 

^[a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12}$

 

If you just want the old, then this:

 

^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$

 

 

 




Archive powered by MHonArc 2.6.16.

Top of Page