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: Paul Gazda <>, Grouper Users Mailing List <>
  • Subject: RE: UUID format
  • Date: Tue, 16 Jun 2009 13:19:37 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

We had a request to take the dashes out of the UUID, so in 1.4.2+ the uuid’s do not have dashes anymore.

Im not sure we assure that the uuid’s will never change, we can discuss it at the dev call, but I think it is pretty safe to use 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}

 

If you want a config switch so that you can have dashes going forward, let me know, we can easily add this…

 

Anyways, let me know the request and we can discuss at the next call

 

Thanks,

Chris

 

From: Paul Gazda [mailto:]
Sent: Tuesday, June 16, 2009 12:45 PM
To: Grouper Users Mailing List
Subject: [grouper-users] UUID format

 

Every uuid I have seen has a format of 8 hex digits, dash, 4 hex digits, dash, 4 hex digits, dash, 12 hex digits.

E.g. 5ea48635-e15d-4cd4-bde2-c0a4c356d388

 

Is that format fixed, or can it change? I want to know if I can determine whether a string is a uuid by matching that pattern.

 

Thanks.

 

Paul Gazda

 




Archive powered by MHonArc 2.6.16.

Top of Page