Tuesday, 22 January 2008

Regular Expression for a GUID

Just a quick post, if you ever need a regular expression to match a guid, for example - in a URL, then look no further :)

([0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12})

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.